树莓派Raspberry Pi 3 更换阿里云更新源

树莓派使用默认官方源速度很慢,而且可能安装软件会报错,于是决定更换成国内镜像源

1.编辑配置文件

编辑/etc/apt/sources.list文件,命令如下:

sudo vi /etc/apt/sources.list

注释掉默认配置,新增:

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

2.更新软件索引清单

sudo apt-get update

大功告成~

参考地址:

Comments