Armbian apt update失败处理方法
N1盒子上装的Armbian,之前一直用的好好的,这段时间无法apt安装软件了,update也是一直失败,一直在报错。
尝试更换不同的源,什么清华、阿里云等都试了个边,包括修改armbian.list都没有用。
原来是安装的debian的版本是9,23年4月已经停止维护了,需要更换专用的源。
一、Armbian版本
bytetoy@aml:/etc/apt$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretch
二、报错类型
bytetoy@aml:~$ sudo aptitude update
Ign http://mirrors.aliyun.com/debian stretch InRelease
Ign http://mirrors.aliyun.com/debian-security stretch/updates InRelease
Ign http://mirrors.aliyun.com/debian stretch-updates InRelease
Ign http://mirrors.aliyun.com/debian stretch-backports InRelease
Err http://mirrors.aliyun.com/debian stretch Release
404 Not Found [IP: 111.32.209.191 80]
Err http://mirrors.aliyun.com/debian-security stretch/updates Release
404 Not Found [IP: 111.32.209.191 80]
Err http://mirrors.aliyun.com/debian stretch-updates Release
404 Not Found [IP: 111.32.209.191 80]
Err http://mirrors.aliyun.com/debian stretch-backports Release
404 Not Found [IP: 111.32.209.191 80]
Err http://mirrors.nju.edu.cn/armbian stretch InRelease
Cannot initiate the connection to mirrors.nju.edu.cn:80 (2001:da8:1007:4011::3). - connect (101: Network is unreachable) [IP: 2001:da8:1007:4011::3 80]
E: The repository 'http://mirrors.aliyun.com/debian stretch Release' does not have a Release file.
E: The repository 'http://mirrors.aliyun.com/debian-security stretch/updates Release' does not have a Release file.
E: The repository 'http://mirrors.aliyun.com/debian stretch-updates Release' does not have a Release file.
E: The repository 'http://mirrors.aliyun.com/debian stretch-backports Release' does not have a Release file.
E: Failed to download some files
W: Failed to fetch http://apt.armbian.com/dists/stretch/InRelease: Cannot initiate the connection to mirrors.nju.edu.cn:80 (2001:da8:1007:4011::3). - connect (101: Network is unreachable) [IP: 2001:da8:1007:4011::3 80]
W: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch/Release: 404 Not Found [IP: 111.32.209.191 80]
W: Failed to fetch http://mirrors.aliyun.com/debian-security/dists/stretch/updates/Release: 404 Not Found [IP: 111.32.209.191 80]
W: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch-updates/Release: 404 Not Found [IP: 111.32.209.191 80]
W: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch-backports/Release: 404 Not Found [IP: 111.32.209.191 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
三、更换新的官方地址源
debian9停止维护,需要更换新的软件源地址
同时armbian.list保持原官方配置
deb http://apt.armbian.com stretch main stretch-utils stretch-desktop
deb http://archive.debian.org/debian/ stretch main contrib non-free
#deb-src http://archive.debian.org/debian/ stretch main contrib non-free
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
#deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://archive.debian.org/debian/ stretch-backports main contrib non-free
四、更新
更换新的软件源后,可以愉快的系统更新和安装工具了
bytetoy@aml:~$ sudo aptitude update
Ign http://archive.debian.org/debian stretch InRelease
Get: 1 http://archive.debian.org/debian-security stretch/updates InRelease [59.1 kB]
Get: 2 http://archive.debian.org/debian stretch-backports InRelease [78.5 kB]
Hit http://mirrors.ustc.edu.cn/armbian stretch InRelease
Get: 3 http://archive.debian.org/debian stretch Release [118 kB]
Get: 4 http://archive.debian.org/debian-security stretch/updates/main arm64 Packages [762 kB]
Get: 5 http://archive.debian.org/debian-security stretch/updates/main armhf Packages [758 kB]
Get: 6 http://archive.debian.org/debian-security stretch/updates/main Translation-en [368 kB]
Get: 7 http://archive.debian.org/debian-security stretch/updates/contrib armhf Packages [1,764 B]
Get: 8 http://archive.debian.org/debian-security stretch/updates/contrib arm64 Packages [1,760 B]
Get: 9 http://archive.debian.org/debian-security stretch/updates/contrib Translation-en [1,759 B]
Get: 10 http://archive.debian.org/debian-security stretch/updates/non-free armhf Packages [5,320 B]
Get: 11 http://archive.debian.org/debian-security stretch/updates/non-free arm64 Packages [5,320 B]
Get: 12 http://archive.debian.org/debian-security stretch/updates/non-free Translation-en [21.3 kB]
Get: 13 http://archive.debian.org/debian stretch Release.gpg [3,177 B]
Get: 14 http://archive.debian.org/debian stretch-backports/main armhf Packages [600 kB]
Get: 15 http://archive.debian.org/debian stretch-backports/main arm64 Packages [598 kB]
Get: 16 http://archive.debian.org/debian stretch-backports/main Translation-en [467 kB]
Get: 17 http://archive.debian.org/debian stretch-backports/main arm64 Contents (deb) [5,354 kB]
Get: 18 http://archive.debian.org/debian stretch-backports/main armhf Contents (deb) [5,434 kB]
Get: 19 http://archive.debian.org/debian stretch-backports/contrib armhf Packages [8,964 B]
Get: 20 http://archive.debian.org/debian stretch-backports/contrib arm64 Packages [7,828 B]
Get: 21 http://archive.debian.org/debian stretch-backports/contrib Translation-en [7,237 B]
Get: 22 http://archive.debian.org/debian stretch-backports/contrib arm64 Contents (deb) [142 kB]
Get: 23 http://archive.debian.org/debian stretch-backports/contrib armhf Contents (deb) [143 kB]
Get: 24 http://archive.debian.org/debian stretch-backports/non-free arm64 Packages [6,588 B]
Get: 25 http://archive.debian.org/debian stretch-backports/non-free armhf Packages [14.2 kB]
Get: 26 http://archive.debian.org/debian stretch-backports/non-free Translation-en [38.5 kB]
Get: 27 http://archive.debian.org/debian stretch-backports/non-free armhf Contents (deb) [62.5 kB]
Get: 28 http://archive.debian.org/debian stretch-backports/non-free arm64 Contents (deb) [56.7 kB]
Get: 29 http://archive.debian.org/debian stretch/main arm64 Packages [6,921 kB]
Get: 30 http://archive.debian.org/debian stretch/main armhf Packages [6,908 kB]
Get: 31 http://archive.debian.org/debian stretch/main Translation-en [5,377 kB]
Get: 32 http://archive.debian.org/debian stretch/main arm64 Contents (deb) [31.4 MB]
Get: 33 http://archive.debian.org/debian stretch/main armhf Contents (deb) [31.4 MB]
Get: 34 http://archive.debian.org/debian stretch/contrib armhf Packages [41.8 kB]
Get: 35 http://archive.debian.org/debian stretch/contrib arm64 Packages [39.6 kB]
Get: 36 http://archive.debian.org/debian stretch/contrib Translation-en [45.8 kB]
Get: 37 http://archive.debian.org/debian stretch/contrib armhf Contents (deb) [80.3 kB]
Get: 38 http://archive.debian.org/debian stretch/contrib arm64 Contents (deb) [79.6 kB]
Get: 39 http://archive.debian.org/debian stretch/non-free armhf Packages [59.8 kB]
Get: 40 http://archive.debian.org/debian stretch/non-free arm64 Packages [50.9 kB]
Get: 41 http://archive.debian.org/debian stretch/non-free Translation-en [80.2 kB]
Get: 42 http://archive.debian.org/debian stretch/non-free armhf Contents (deb) [757 kB]
Get: 43 http://archive.debian.org/debian stretch/non-free arm64 Contents (deb) [754 kB]
Fetched 99.1 MB in 55s (1,774 kB/s)
Current status: 78194 (+77134) new.