树莓派4b——64位系统,Debian 11(bullseye)换源
备份相关文件
编辑 /etc/apt/sources.list 文件
sudo nano /etc/apt/sources.list
将原内容注释并复制一下内容
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
ctrl+o, 然后回车, 最后ctrl+x退出即可
编辑 /etc/apt/sources.list.d/raspi.list 文件
sudo nano /etc/apt/sources.list.d/raspi.list
将原内容注释并复制一下内容
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main
ctrl+o, 然后回车, 最后ctrl+x退出即可
更新
sudo apt-get update
sudo apt-get upgrade
完毕