1

I am trying to upgrade from Ubuntu 20 to Ubuntu 22 via Software Updates. I have already updated and upgraded through both apt and apt-get. However, the Ubuntu upgrade keeps failing under the following errors:

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]

I know for sure that this is not a weak connection issue, as I have tried this under several networks. How can I fix this? Am I doing something wrong?

aviad1
  • 113
  • 4

1 Answers1

3

You're using a not up-to-date update server mirror that isn't serving you the packages that you need to upgrade from Ubuntu 20.04 to Ubuntu 22.04. The Main Ubuntu update server works fine for http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-12/gcc-12-base_12-20220319-1ubuntu1_i386.deb - How can I get apt to use a mirror close to me, or choose a faster mirror?.

A standard sources.list file at /etc/apt/sources.list for Ubuntu 20.04 using the Main server looks like this:

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

After changing the update server mirror run sudo apt update to refresh the list of available software.

karel
  • 122,292
  • 133
  • 301
  • 332