deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib$
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main con$
#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-fre$
变成
#deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib$
#deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main con$
#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-fre$
3.更换新源,将如下源粘贴
清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib$
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main con$
4.打开/etc/apt/sources.list.d/raspi.list
$ sudo nano /etc/apt/sources.list.d/raspi.list
注释掉旧源,更换为
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
Comments | NOTHING