How to Upgrade Ubuntu 20.04 LTS to 22.04 LTS: A Step-by-Step Guide

This guide shows you how to easily and safely upgrade the existing version of Ubuntu 20.04 LTS 'Focal Fossa' to Ubuntu 22.04 LTS 'Jammy Jellyfish.'

Long waited Ubuntu 22.04 LTS ‘Jammy Jellyfish’ was released recently. One method for getting Ubuntu 22.04 is downloading the installation media (ISO image) and installing it from scratch.

But if you already have Ubuntu 20.04 LTS installed and running, configured to your preferences, doing a brand new install and setting it up from scratch is something everyone would like to avoid.

Fortunately, you can upgrade your existing Ubuntu 20.04 LTS operating system directly to Ubuntu 22.04 LTS, performing an in-place upgrade.

An in-place upgrade is upgrading a system to a new major release by replacing the existing operating system.

In other words, during an in-place upgrade, you replace the earlier version with the new version without removing the earlier version first. As a result, the installed applications and utilities and the configurations and preferences are incorporated into the latest version.

However, if you are using the server version of Ubuntu 20.04 and want to upgrade to the most recent LTS server release, in that case, we strongly advise you to follow our excellent guide, โ€œHow to Upgrade Ubuntu Server to 22.04 from 20.04 (Best Practices).โ€

This article will show you how to upgrade your existing Ubuntu 20.04 LTS system to Ubuntu 22.04 LTS. So, letโ€™s get started.

1. Make a Backup

I can’t stress how important it is to back up your system before moving on to performing the actual upgrade.

Please ensure you take the backup of all your essential data and, if possible, take a snapshot of the complete Ubuntu 20.04 system. This way, you will be on the right side of things if anything goes wrong.

2. Update System

To upgrade to Ubuntu 22.04 LTS, you need a working internet connection and the fully-updated Ubuntu 20.04 LTS system.

So, to begin, ensure that your current Ubuntu 20.04 LTS system is up to date. This will help to keep the gap between packages as small as possible.

Execute the below commands:

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
Update currently installed Ubuntu 20.04 system

Make sure all available updates are installed.

3. Upgrade from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS

Your current Ubuntu 20.04 LTS installation will not prompt you for an upgrade until Ubuntu 22.04.1 is released, which is scheduled for August 4th, 2022. The first point release is considered the most stable version after the initial bugs have been ironed out.

So if you can’t wait until August, follow the steps below, and you’ll upgrade your current Ubuntu 20.04 system to Ubuntu 22.04 in no time.

During the upgrade, all PPAs and external repositories will be disabled. After the upgrade is complete, you must re-enable them. However, remember that some of the PPAs and external repositories you’ve added may no longer work in later versions.

Now letโ€™s verify our current operating system version. First, here is our Ubuntu 20.04 system before beginning the upgrade to Ubuntu 22.04.

Ubuntu 20.04 system before upgrade to Ubuntu 22.04

Next is time to run the Update Manager so that it looks for distribution upgrades.

sudo update-manager -d

As a result, you will get a popup informing you that there are no updates available, but there is a new version of the Ubuntu 22.04 operating system. Click on the “Upgrade” button.

Ubuntu 22.04 is available for upgrade

You will be taken to a wizard starting the upgrade from Ubuntu 20.04 to Ubuntu 22.04.

Starting upgrade process from Ubuntu 20.04 to Ubuntu 22.04

Then you will be informed that any third-party repos will be disabled during the upgrade. Click on the “Close” button.

Disabling the third-party software repos

Some preliminary steps will be carried out. After that, there isn’t much else to do but wait for this process to complete.

Doing preliminary upgrade steps

So wait until you see the screen shown below. Then click on the “Start Upgrade” button and wait for all new packages to download and install.

Starting of the upgrade process from Ubuntu 20.04 to Ubuntu 22.04

Depending on your Internet connection speed, this may take different amounts of time. The window showing you the upgrade progress from Ubuntu 20.04 to Ubuntu 22.04 will look like the one shown below.

Downloading Ubuntu 22.04 packages

As you may know, Firefox in Ubuntu 22.04 is a Snap package that runs in a sandbox. So during the upgrade process, you will be prompted to confirm this new change.

Click on the “Next” button and wait briefly until the Firefox to snap conversion is complete. Then the upgrade process will continue.

Configuring Firefox as a snap

If you have made any changes to your Ubuntu 20.04 system, as in my case, you may get one or more similar prompts throughout the upgrade.

Confirming file changes

Select the action you want so that the upgrade process can continue. When the upgrade is complete, you will be prompted to remove the obsolete packages from your system. Click “Remove.”

Removing obsolete packages

4. Reboot the System

Finally, after the upgrade process is finished, you’ll be asked to perform a reboot. Click on the “Restart Now” button.

Upgrade from Ubuntu 20.04 to Ubuntu 22.04 completed successfully

Congratulations! Once your Ubuntu system boots up after the upgrade, you’ll be in Ubuntu 22.04 LTS ‘Jammy Jellyfish’ and ready to enjoy your newly upgraded system!

Ubuntu 22.04 Desktop

Conclusion

I hope these steps help you successfully upgrade your system from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS. Undoubtedly, Ubuntu 22.04 packs exciting new features to give a better user experience, performance, and speed than ever before.

Thatโ€™s all from this article. Thanks for reading! Your feedback and comments are most welcome.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 69%