How to Upgrade from Ubuntu 20.04 to Ubuntu 22.04

How to Upgrade from Ubuntu 20.04 to Ubuntu 22.04

The next LTS release of Ubuntu – Ubuntu 22.04 is set to be officially released on April 21, 2021. It packs numerous enhancements and new versions of applications such as Kernel 5.15, PHP 8.1. Ruby 3.0, GNOME 42.0, and enhanced support for ARM devices such as Raspberry Pi 4.

While not officially released, you can still download Ubuntu 22.04 and give it a test drive. Alternatively, you can seamlessly upgrade from Ubuntu 20.04 to Ubuntu 22.04.

In this guide, we outline the steps to take when upgrading from Ubuntu 20.04 Focal Fossa to Ubuntu 22.04 codenamed Jammy JellyFish.


To get started, you need to have the following:

  1. An instance on Ubuntu 20.04
  2. Privileged access to your instance as a root user or as a sudo user.
  3. A fast and stable internet connection.


Since you are upgrading to a new Ubuntu release, ensure to backup all your data first so that in case of any issues during the upgrade, your data is not lost.

With everything in place, let’s head over and upgrade to Ubuntu 22.04!

Step 1: Upgrade Ubuntu 20.04

To get off the ground, you need to upgrade your system to the latest release, which, at the time of publishing this tutorial, is Ubuntu 20.04.3. Therefore update the package index and upgrade Ubuntu to the latest release as follows.

$ sudo apt update && sudo apt upgrade -y

Just to be sure that you are running the latest release, execute the following command.

$ cat /etc/os-release

Next, run the following command to prepare your system for the upgrade.

$ sudo apt dist-upgrade

The command handles switching dependencies between different versions of Ubuntu.

Step 2: Install update-manager-core package

Before we begin the upgrade, we need to install a crucial package known as update-manager-core . This manages release upgrades.

$ sudo apt install update-manager-core

Step 3: Upgrade to Ubuntu 22.04

Next, run the following command to start the upgrade to Ubuntu 22.04 Jammy Jellyfish. The -d option gives the green light for the command to proceed with the upgrade despite the fact that the latest version is yet to be officially released. Simply put, the option implies upgrading to the development release.

$ sudo do-release-upgrade -d

The update manager will probe for a new Ubuntu release from official Ubuntu servers.

Your system repositories will then be updated with Ubuntu 22.04 package lists.

The update manager will then determine which packages need to be removed and which are going to be installed. Also, the updater will determine the size of the upgrade and the approximate time it will take to successfully complete the upgrade based on your internet connection.

To begin the upgrade, press ‘Y’. To display a list of all the packages that are going to be installed and upgraded, press ‘d

During the upgrade, the installer will remove obsolete packages and install new packages for Ubuntu 22.04 including the latest kernel ( kernel 5.15 )

The upgrade will take quite a while, so be patient. It’s also a great time to take a coffee break.

Once the upgrade is complete, you will be prompted to restart, so go ahead and press ‘y’ and press ENTER to boot into your new Ubuntu release!

Step 4: Confirm upgrade to Ubuntu 22.04

By the time you are logging back in, Ubuntu should already be upgraded to Ubuntu 22.04. If you are running a GUI, you should see a new animal mascot on the desktop background as shown.

On the terminal, you can verify this using the command:

$ cat /etc/os-release

From the output, you can see that we are running Ubuntu 22.04!

And that’s how to successfully upgrade from Ubuntu 20.04 Focal Fossa to Ubuntu 22.04 Jammy Jellyfish.

Similar Posts