Raspberry Pi更改软件源镜像为阿里云镜像

简介

Raspbian是专门用于ARM卡片式计算机Raspberry Pi® “树莓派”的操作系统。

下载地址:https://mirrors.aliyun.com/raspberrypi/

配置方法

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

1
sudo nano /etc/apt/sources.list

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

1
2
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

更新软件索引清单

1
sudo apt-get update

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

1
sudo apt-get upgrade -y