树莓派系统更换国内软件源
Buster版本
-
备份源文件
-
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
-
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
-
进入更改软件源文件
-
sudo nano /etc/apt/sources.list
-
更换镜像源(使用清华源)
-
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
-
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
- 其它高校软件源
-
- http://mirrors.ustc.edu.cn/raspbian/raspbian/ (中科大)
- http://mirror.sysu.edu.cn/raspbian/ (中山大学)
-
-
进入更改系统源
-
sudo nano /etc/apt/sources.list.d/raspi.list
-
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
-
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
-
更新软件包
-
sudo apt-get update
-
sudo apt-get upgrade