树莓派3B+更换国内软件源 stretch

树莓派官方软件源链接:https://www.raspbian.org/RaspbianMirrors

经之前的测试,树莓派3B+已经装不起Jessie版本的系统了,只能使用最新的stretch版本。所以对应更新软件源也要换为stretch版本。

以清华大学软件源为例:

打开sources.list文件(Linux下nano编辑器的使用

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

然后更新升级一下就是了

sudo apt-get update
sudo apt-get upgrade

如果想用其他源,将代码中的网址更换一下就好了,截下国内官方源的图:

https://www.raspbian.org/RaspbianMirrors

猜你喜欢

转载自blog.csdn.net/m0_37509650/article/details/85401462
今日推荐