更新树莓派的更新源为阿里云源
分类:Linux, Operating System
阅读 (1,573)
Add comments
8月 082017
首先备份sources.list
1 |
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak |
然后编辑sources.list
1 |
sudo vi /etc/apt/sources.list |
在原来的内容前面加上#,注释掉原来的内容,然后添加下面的内容
1 2 |
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 |
然后再执行更新就可以了
1 2 |
sudo apt-get update sudo apt-get upgrade |