无法升级到 Ubuntu 22:404 未找到

无法升级到 Ubuntu 22:404 未找到

我正在尝试通过软件更新从 Ubuntu 20 升级到 Ubuntu 22。我已经通过 apt 和 apt-get 进行了更新和升级。但是,Ubuntu 升级在以下错误下不断失败:

Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/g/gcc-12/gcc-12-base_12-20220319-1ubuntu1_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/g/gcc-12/libgcc-s1_12-20220319-1ubuntu1_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libx/libxcrypt/libcrypt1_4.4.27-1_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.35-0ubuntu3.1_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libc/libcap2/libcap2_2.44-1build3_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libg/libgpg-error/libgpg-error0_1.43-3_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libg/libgcrypt20/libgcrypt20_1.9.4-3ubuntu3_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/l/lz4/liblz4-1_1.9.3-2build2_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/x/xz-utils/liblzma5_5.2.5-2ubuntu1_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libz/libzstd/libzstd1_1.4.8+dfsg-3build1_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd0_249.11-0ubuntu3.4_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb5support0_1.19.2-2_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/k/krb5/libk5crypto3_1.19.2-2_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/k/keyutils/libkeyutils1_1.6.1-2ubuntu3_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb5-3_1.19.2-2_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/k/krb5/libgssapi-krb5-2_1.19.2-2_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libn/libnsl/libnsl2_1.3.0-2build2_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/d/dbus/libdbus-1-3_1.12.20-2ubuntu4_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libu/libunistring/libunistring2_1.0-1_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libi/libidn2/libidn2-0_2.3.2-2build1_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/g/gamemode/libgamemode0_1.6.1-1build2_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/g/gamemode/libgamemodeauto0_1.6.1-1build2_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libn/libnss-nis/libnss-nis_3.1-0ubuntu6_i386.deb 404  Not Found [IP: 192.115.211.70 80]
Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/main/libn/libnss-nisplus/libnss-nisplus_1.3-0ubuntu6_i386.deb 404  Not Found [IP: 192.115.211.70 80]

我确信这不是连接不良的问题,因为我已经在多个网络下尝试过。我该如何解决这个问题?我做错了什么吗?

答案1

您使用的更新服务器镜像不是最新的,无法为您提供从 Ubuntu 20.04 升级到 Ubuntu 22.04 所需的软件包。主 Ubuntu 更新服务器可以正常工作http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-12/gcc-12-base_12-20220319-1ubuntu1_i386.deb-我怎样才能使用靠近我的镜像,或者选择更快的镜像?

使用主服务器的 Ubuntu 20.04的标准 sources.list 文件/etc/apt/sources.list如下所示:

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse  
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse  
deb http://archive.canonical.com/ubuntu focal partner

更改更新服务器镜像运行后sudo apt update刷新可用软件列表。

相关内容