树莓派的更新服务器实在太慢了,有时还会更新失败,今发现阿里云的服务器更新速度还不错,推荐大家试试:
打开更新服务器配置文件:
|
1 |
sudo nano /etc/apt/sources.list |
编辑sources.list文件,按下面内容修改:
|
1 2 3 4 5 |
#deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/raspbian/raspbian/ stretch main non-free contrib |
然后执行更新命令: