树莓派4B更换阿里源
用编辑器打开源文件:sudo vim /etc/apt/sources.list
,把原先内容,开头加上#符号注释掉, 在文件靠上的位置粘贴下面的代码。
deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
然后打开sudo vim /etc/apt/sources.list.d/raspi.list
,把原先内容,开头加上#符号注释掉,然后粘贴下面内容。
deb http://mirrors.aliyun.com/raspberrypi/ buster main ui
更新
sudo apt update && sudo apt full-upgrade -y && sudo apt upgrade -y && sudo apt autoremove -y