转载自:http://blog.csdn.net/la9998372/article/details/77886806
首先编辑sources.list
sudo nano /etc/apt/sources.list
用#注释掉原先的内容,然后在下面新增两条:
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
#deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
然后Ctrl+X,确认保存退出
继续编辑raspi.list
sudo nano /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
然后Ctrl+X,确认保存退出,更新一下软件源列表:
sudo apt-get update
网友评论