树莓派4由于官方用的是国外的软件源,国内访问速度堪忧,所以当我们买回来的时候就应该刷完系统就进行这步操作这样会省心很多。

1、更新/etc/apt/sources.list


sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk
sudo nano /etc/apt/sources.list

用#号注释掉官方的源,把下面这个源复制进去。CTRL+O保存,CTRL+X退出


deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

2、更新/etc/apt/sources.list.d/raspi.list


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

重复上述操作


deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main

3、更新


sudo apt-get update && sudo apt-get dist-upgrade

Last modification:February 21st, 2020 at 02:31 pm