RPI - 树莓派换阿里云源


1.解决方案

向速度低头.jpg
将souces.list替换为国内阿里云
官方提供的souceslist http://www.raspbian.org/RaspbianMirrors

2.实施方案

1.备份好原文件

1
2
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bkp
sudo vim /etc/apt/sources.list

2.将如下两行复制到sources.list替换原文

1
2
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib rpi 
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib rpi

3.执行如下命令,更新软件list

1
2
sudo apt-get update 
sudo apt-get upgrade -y