修改树莓派的升级源为国内地址方法,要修改两个文件:
1. /etc/apt/sources.list
deb http://mirror.sysu.edu.cn/raspbian/ wheezy main contrib non-free rpi
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
2. /etc/apt/sources.list.d/raspi.list
deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
# Uncomment line below then ‘apt-get update‘ to enable ‘apt-get source‘
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui