PHP菜鸟博客_共同学习分享PHP技术心得【PHP爱好者】
树莓派 Raspberry Pi (bullseye)更换阿里云源方法
2022-2-16 菜鸟站长


一、安装树莓派系统



首先下载树莓派的系统,镜像官网(https://www.raspberrypi.com/)速度下载比较慢,推荐使用阿里云镜像站下载。



阿里云镜像站官网:https://developer.aliyun.com/mirror/



阿里云树莓派系统镜像地址:https://mirrors.aliyun.com/raspberrypi/



然后我们找到下载地址下载:



https://mirrors.aliyun.com/raspberry-pi-os-images/raspios_full_arm64/images/raspios_full_arm64-2022-01-28/2022-01-28-raspios-bullseye-arm64-full.zip



基于Debian11,当前日期是2022-02-16,目前最新的系统。



下载完毕后解压,然后使用Win32DiskImager刷入内存卡,烧录系统这里就不多说了。



把内存卡插入树莓派,通电开机,然后通过hdmi线接入显示器。就可以进入系统了。



二、Raspberry Pi 更换阿里云源方法



自带的源在海外,访问速度比较慢,更换成阿里云的源后安装软件速度会提升很大。



阿里云raspberrypi 镜像源地址:



https://developer.aliyun.com/mirror/raspberrypi?spm=a2c6h.13651102.0.0.5f851b11F6UTeG



其他源:http://www.raspbian.org/RaspbianMirrors



 



编辑 /etc/apt/sources.list 文件,这里推荐就用系统自带的 nano 命令编辑,命令如下:



sudo nano /etc/apt/sources.list



进入编辑界面,删除原有的内容,粘贴如下内容:



deb http://mirrors.aliyun.com/raspbian/raspbian/ bullseye  main non-free contrib rpi



deb-src http://mirrors.aliyun.com/raspbian/raspbian/ bullseye main non-free contrib rpi



更新软件索引清单



sudo apt-get update



比较索引清单更新依赖关系



sudo apt-get upgrade -y



 



 

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容