debian | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirrorhttps://mirrors.tuna.tsinghua.edu.cn/help/debian/以下操作均在树莓派:64位 RPI OS(Bullseye)系统上实践通过
首先打开
sudo vi /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-security bullseye-security main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-updates main contrib non-free
接着按shift+zz保存退出
接着打开第二个文件
sudo vi /etc/apt/sources.list.d/raspi.list
注释掉所有语句,然后加入:
deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi bullseye main
接着按shift+zz保存退出
最后执行以下命令更新
sudo apt update
sudo apt upgrade