0

I'm trying to upgrade from Xubuntu 20.04 to 22.04. I did sudo apt clean, sudo apt update and sudo apt upgrade, and then tried to upgrade like so:

$ sudo do-release-upgrade -c
Checking for a new Ubuntu release
New release '22.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

$ sudo do-release-upgrade Checking for a new Ubuntu release Get:1 Upgrade tool signature [833 B]
Get:2 Upgrade tool [1,267 kB]
Fetched 1,268 kB in 0s (0 B/s)
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg' extracting 'jammy.tar.gz'

Reading cache

Checking package manager Reading package lists... Done Building dependency tree
Reading state information... Done Hit http://archive.ubuntu.com/ubuntu focal InRelease
Hit http://security.ubuntu.com/ubuntu focal-security InRelease
Hit http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit http://archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done None

Restoring original system state

Aborting Reading package lists... Done
Building dependency tree
Reading state information... Done

It tells me there is an upgrade available, and then doesn't seem to do anything. DNS is working, I have removed all my iptables rules that might block any traffic, and sudo apt works correctly. I have also tried the old-releases repos as suggested in the question referenced by @waltinator below, but this doesn't work:

$ sudo apt-get update
Ign:1 http://old-releases.ubuntu.com/ubuntu focal InRelease
Ign:2 http://old-releases.ubuntu.com/ubuntu focal-updates InRelease
Ign:3 http://old-releases.ubuntu.com/ubuntu focal-backports InRelease
Ign:4 http://old-releases.ubuntu.com/ubuntu focal-security InRelease
Err:5 http://old-releases.ubuntu.com/ubuntu focal Release
  404  Not Found [IP: 185.125.190.40 80]
Err:6 http://old-releases.ubuntu.com/ubuntu focal-updates Release
  404  Not Found [IP: 185.125.190.40 80]
Err:7 http://old-releases.ubuntu.com/ubuntu focal-backports Release
  404  Not Found [IP: 185.125.190.40 80]
Err:8 http://old-releases.ubuntu.com/ubuntu focal-security Release
  404  Not Found [IP: 185.125.190.40 80]
Reading package lists... Done
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

$ sudo do-release-upgrade Checking for a new Ubuntu release Get:1 Upgrade tool signature [833 B]
Get:2 Upgrade tool [1,267 kB]
Fetched 1,268 kB in 0s (0 B/s)
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg' extracting 'jammy.tar.gz'

Reading cache

Checking package manager Reading package lists... Done Building dependency tree
Reading state information... Done Ign http://old-releases.ubuntu.com/ubuntu focal InRelease
Ign http://old-releases.ubuntu.com/ubuntu focal-updates InRelease
Ign http://old-releases.ubuntu.com/ubuntu focal-backports InRelease
Ign http://old-releases.ubuntu.com/ubuntu focal-security InRelease
Err http://old-releases.ubuntu.com/ubuntu focal Release
404 Not Found [IP: 185.125.190.40 80]
Err http://old-releases.ubuntu.com/ubuntu focal-updates Release
404 Not Found [IP: 185.125.190.40 80]
Err http://old-releases.ubuntu.com/ubuntu focal-backports Release
404 Not Found [IP: 185.125.190.40 80]
Err http://old-releases.ubuntu.com/ubuntu focal-security Release
404 Not Found [IP: 185.125.190.40 80]
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done none None

Restoring original system state

Aborting Reading package lists... Done
Building dependency tree
Reading state information... Done

What am I doing wrong? What else should I be looking for?

1 Answers1

0

Replace your content in your /etc/apt/sources.list with following content

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-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu focal partner

Then

sudo apt update && sudo apt full-upgrade

Then try again your release upgrade to 22.04.

You are really a bit late.

nobody
  • 5,792