sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vim /etc/apt/sources.list
将原文件内容替换成如下:
deb [arch=armhf] http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
sudo vim /etc/apt/sources.list.d/raspi.list
将原文件内容替换成如下:
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main
更新源
sudo apt-get update