HarrisonBlog

树莓派(四)树莓派更换源

 

 

树莓派的官方系统默认的是国外的源,为了提高速度需要更换为国内的源。

我比较喜欢清华的源,所以以清华源为例。

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

 

buster源

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

 

①输入如下命令

sudo nano /etc/apt/sources.list

②将初始的源使用#注释掉,添加如下两行

deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

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

③保存后退出

④最后执行如下命令 sudo apt-get update,完成源的更新

 

发表于 2019-05-19 13:16  烈马青葱  阅读(5255)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章: