树莓派更新中国软件源

1、sudo  nano  /etc/apt/sources.list  ,进入编辑页面

2、注释掉之前的源地址。

3、复制以下地址

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

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

deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi

deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi

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

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

4、在Nano编辑页面,点击鼠标右键,即可将复制内容粘贴其中。

5、ctrl+o保存

扫描二维码关注公众号,回复: 5807117 查看本文章

6、回车 ,ctrl+x退出

7、更新源,sudo apt-get update

8、更新软件列表,sudo apt-get upgrade

这样更新更彻底

sudo apt-get update

sudo apt-get upgrade -y

sudo apt-get dist-upgrade -y

猜你喜欢

转载自www.cnblogs.com/500m/p/10668625.html