raspberry 更换阿里源

系统环境code

$ uname -an
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

备份/etc/apt/sources.listget

cp /etc/apt/sources.list  /etc/apt/sources.list.bak

修改 /etc/apt/sources.list 文件内容date

#deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.aliyun.com/raspbian/raspbian stretch main contrib non-free rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi

更新源di

sudo apt-get update
相关文章
相关标签/搜索