树莓派替换国内软件源(基于Debian11 - bullseye版本)
作者:互联网
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
标签:树莓,etc,sudo,list,apt,sources,bullseye,Debian11 来源: https://www.cnblogs.com/greene/p/15810898.html