Impish (21.10) to Jammy (22.04)

I just tried to update my Ubuntu Impish machine using sudo apt update and got the dreaded:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  python3-distupgrade tailscale ubuntu-release-upgrader-core
  ubuntu-release-upgrader-gtk
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 139 kB/19.8 MB of archives.
After this operation, 98.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://us.archive.ubuntu.com/ubuntu impish-updates/main amd64 ubuntu-release-upgrader-gtk all 1:21.10.10
Ign:2 http://us.archive.ubuntu.com/ubuntu impish-updates/main amd64 ubuntu-release-upgrader-core all 1:21.10.10
Ign:3 http://us.archive.ubuntu.com/ubuntu impish-updates/main amd64 python3-distupgrade all 1:21.10.10
Err:1 http://us.archive.ubuntu.com/ubuntu impish-updates/main amd64 ubuntu-release-upgrader-gtk all 1:21.10.10
  404  Not Found [IP: 91.189.91.38 80]
Err:2 http://us.archive.ubuntu.com/ubuntu impish-updates/main amd64 ubuntu-release-upgrader-core all 1:21.10.10
  404  Not Found [IP: 91.189.91.38 80]
Err:3 http://us.archive.ubuntu.com/ubuntu impish-updates/main amd64 python3-distupgrade all 1:21.10.10
  404  Not Found [IP: 91.189.91.38 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-release-upgrader/ubuntu-release-upgrader-gtk_21.10.10_all.deb  404  Not Found [IP: 91.189.91.38 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-release-upgrader/ubuntu-release-upgrader-core_21.10.10_all.deb  404  Not Found [IP: 91.189.91.38 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-release-upgrader/python3-distupgrade_21.10.10_all.deb  404  Not Found [IP: 91.189.91.38 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

What now, you say? Well let’s update to Jammy … but wait … sudo do-release-upgrade tell us we need to “install all available updates” (which we can’t do!):

Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife

Please install all available updates for your release before upgrading.

Well … since this is Ubuntu, we can work around this seemingly insurmountable issue. Open a terminal (Ctrl+Alt+T) and type:

sudo nano -KSw /etc/update-manager/release-upgrades

Look at the line that says “Prompt=” if it says LTS then you’re only going to get the next LTS upgrade. I usually set this to Normal so that I can upgrade to the the latest Ubuntu release, regardless of type.

Once you’re done editing hit Ctrl+x to exit, y to save the file, and Enter to confirm. Or just Ctrl+x if you didn’t make any changes.

Let’s change our sources, type:

sudo nano -KSw /etc/apt/sources.list

You’ll see nano open your update sources list. This file tells Ubuntu where to look for updates, currently you should see a bunch of references to “impish” … which doesn’t work anymore. So change all the instances of “impish” to “jammy” (the release we want to go to). Your file should look like this now:

#deb cdrom:[Ubuntu 21.10 _Impish Indri_ - Release amd64 (20211012)]/ impish main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
#deb http://us.archive.ubuntu.com/ubuntu/ impish universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish universe
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
#deb http://us.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu impish partner
# deb-src http://archive.canonical.com/ubuntu impish partner

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu impish-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu impish-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu impish-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

Once you’re done editing hit Ctrl+x to exit, y to save the file, and Enter to confirm.

Now type:

sudo apt-get update
...
sudo apt-get dist-upgrade
...
<Answer some questions>
...
sudo do-release-upgrade
...
<Answer some more questions>
...

After that’s all done, you should be running Jammy!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.