树莓派4B(7-10)系统更换国内源

技术 · 2019-09-02 · 337 人浏览

编辑源:

sudo nano /etc/apt/sources.list

打开以后,将里面的代码用 # 注释掉,添加如下代码:

deb http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
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

6.png

sudo nano /etc/apt/sources.list.d/raspi.list

打开以后,将里面的代码用 # 注释掉,添加如下代码:

deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

7.png

替换后,更新源:

sudo apt-get update

更新后,更新已安装包:

sudo apt-get upgrade

安装过程中如果碰到(Y/n),都选择Y

raspberry 换源
Theme Jasmine by Kent Liao