Upgrade from Ubuntu Focal to Jammy

Posted by

Ubuntu 22.04, alias Jammy Jellyfish has just been released, let’s try to upgrade 🙂
Don’t upgrade directly your system on production, I’m doing it on my personal computer and on a development server. It’s better to wait the first major update before doing it.

First we will check if our system is up to date.

sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y

If your system hasn’t been updated for a while, you should restart it before going further.

In the file /etc/update-manager/release-upgrades, check the Prompt value

Prompt=lts

Technically, Jammy Jellyfish is still a development release, so we will have to force the upgrade. Answer yes to the questions prompted.

sudo do-release-upgrade -d

It takes just few minutes to download all the packages, depending of your internet connection. Validate the questions about the services. We will restart the machine at the end, so it’s not super important to restart all of them during the upgrade process.

After a reboot

[root@server]$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy

Leave a Reply

Your email address will not be published.