Categories: TutorialsUbuntu

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.

Prerequisites

Sponsored

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.

NOTE:

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

Sponsored

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.

Ubuntu Server Admin

Recent Posts

Canonical Releases Ubuntu 25.04 Plucky Puffin

The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…

2 days ago

Ubuntu 25.04 (Plucky Puffin) Released

Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…

3 days ago

Extended Security Maintenance for Ubuntu 20.04 (Focal Fossa) begins May 29, 2025

Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…

3 days ago

Ubuntu 20.04 LTS End Of Life – activate ESM to keep your fleet of devices secure and operational

Focal Fossa will reach the End of Standard Support in May 2025, also known as…

4 days ago

Ubuntu MATE 25.04 Release Notes

Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…

5 days ago

Ubuntu Weekly Newsletter Issue 887

Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…

6 days ago