树莓派 Raspberry Pi (bullseye)更换阿里云源方法

99 阅读1分钟

一、安装树莓派系统

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

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

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

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

mirrors.aliyun.com/raspberry-p…

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

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

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

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

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

阿里云raspberrypi 镜像源地址:

developer.aliyun.com/mirror/rasp…

其他源:www.raspbian.org/RaspbianMir…

编辑 /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