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

<!-- wp:heading {"level":3} -->
<h3> 1、更新/etc/apt/sources.list </h3>
<!-- /wp:heading -->

<!-- wp:shortcode -->
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk
sudo nano /etc/apt/sources.list
<!-- /wp:shortcode -->

<!-- wp:paragraph -->
<p>用#号注释掉官方的源,把下面这个源复制进去。CTRL+O保存,CTRL+X退出</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

<!-- /wp:shortcode -->

<!-- wp:heading {"level":3} -->
<h3> 2、更新/etc/apt/sources.list.d/raspi.list </h3>
<!-- /wp:heading -->

<!-- wp:shortcode -->
sudo nano /etc/apt/sources.list.d/raspi.list
<!-- /wp:shortcode -->

<!-- wp:paragraph -->
<p>重复上述操作</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main
<!-- /wp:shortcode -->

<!-- wp:heading {"level":3} -->
<h3>3、更新</h3>
<!-- /wp:heading -->

<!-- wp:shortcode -->
sudo apt-get update && sudo apt-get dist-upgrade
<!-- /wp:shortcode -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

最后修改:2020 年 02 月 21 日 02 : 31 PM
如果觉得我的文章对你有用,请随意赞赏