玩客云刷armbian系统更新源报错的解决方法(E: The repository 'http://apt.armbian.com stretch Release' does not have a Release file.)
玩linux的小伙伴在装好系统的第一件事都是给系统换一个国内源,来达到提高安装一些的软件包的下载速度,给玩客云刷好armbian后也是一样,首先换源:
# 修改源配置文件
sudo vim /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
还原完成后,更新:
# 更新源
sudo apt update
sudo apu upgrade
至此,换源完成!
但是,并没有这么顺利,在执行sudo apt update 时后报错,各种找不到的错误,然后就不停的折腾,换不同的源,依然报错,问题并不是源有问题!!!!
此时,我们执行下面一条命令:
# 查看配置文件
cat /etc/apt/sources.list.d/armbian.list
我们可以看到如下的信息:
deb http://apt.armbian.com stretch main stretch-utils stretch-desktop
这就是罪魁祸首!!!!!
我们做如下修改:
# 修改配置文件
sudo vim /etc/apt/sources.list.d/armbian.list
将文件中上面的信息改成下面的这样:
deb [trusted=yes] http://apt.armbian.com bionic main bionic-utils bionic-desktop
然后在执行:
# 更新源
sudo apt update
sudo apu upgrade
然后就会顺利地更新了!!!!!