Raspberry Pi Configuration for Domestic Software Sources
先使用官方源进行一次update
查看系统版本(非常重要)
注意不要使用不是你系统版本的软件源
1
lsb_release -c
换源
1 2 3 4 5 6 7 8
sudo nano /etc/apt/sources.list deb https://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free deb-src https://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free #deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi sudo nano /etc/apt/sources.list.d/raspi.list deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main ui deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui #deb http://archive.raspberrypi.org/debian/ buster main
First, Perform an Update Using the Official Sources
Check the System Version (Very Important)
Be careful not to use software sources that do not match your system version.
1
lsb_release -c
Change the Sources
1 2 3 4 5 6 7 8
sudo nano /etc/apt/sources.list deb https://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free deb-src https://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free #deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi sudo nano /etc/apt/sources.list.d/raspi.list deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main ui deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui #deb http://archive.raspberrypi.org/debian/ buster main