How to Upgrade to Ubuntu 22.04 LTS from 20.04 LTS

This tutorial demonstrates the steps for upgrading to Ubuntu 22.04 from 20.04. You can use the same steps to upgrade from any other supported Ubuntu version.
Warp Terminal

There are plenty of new features in Ubuntu 22.04 LTS. As an ardent Ubuntu user, it is normal to get excited about this new version release.

Getting 22.04 LTS when you are already using Ubuntu

Wondering how to get your hands on 22.04 as an existing Ubuntu user? There are two ways to get the new version:

  • Install Ubuntu 22.04 afresh: it deletes your existing data and applications to give you a fresh new system. You can do it with any Ubuntu version.
  • Upgrade to Ubuntu 22.04 from 20.04 or 21.10: your existing data and most of the applications remain as it is, and you get the new Ubuntu version.
Options for getting ubuntu 22.04
Options for getting Ubuntu 22.04

You probably already know how to do a fresh installation of Ubuntu, so I am not going that way in this tutorial. Here, I’ll show you the steps for upgrading to Ubuntu 22.04 Jammy Jellyfish from 21.10 or 20.04.

The upgrade procedure consists of three main steps:

  • Make sure that you get notified of the availability of a new version
  • Update your system: sudo apt update && sudo apt dist-upgrade

Don’t worry. I’ll discuss the steps in detail. I’ll also provide suggestions on things to look for before and after the upgrades.

Things to know about upgrading the Ubuntu version to a new release

upgrade to Ubuntu 22.04

Upgrading to Ubuntu 22.04 from 21.10 and 20.04 means that you don’t need to create a live USB of Ubuntu and do a fresh installation.

All you need is a good internet connection that can download around 1.5 GB of data. The upgrade process takes a few clicks and 30 minutes to 2 hours, depending on your internet speed.

Here are a few things you should know and keep in mind.

  • All your data and most of the application settings remain the same in the existing system. However, making a data backup on an external disk is always recommended.
  • If you choose to upgrade your Ubuntu version, you cannot downgrade it. You cannot go back to Ubuntu 20.04 or 21.10 without reinstalling it. And if you do that, you’ll have to format the disk/partition.
  • It is always a good idea to make a backup of your data before performing a major upgrade like this.
  • Please note that some PPA and external repositories you have added may not work in the newer versions.
  • All PPAs and external repositories will be disabled during the upgrade. You’ll have to re-enable them after the upgrade procedure finishes.
  • You need to have around 3-4 GB of free space on your root partition. If not, clean your disk and make some free space on Ubuntu.
  • You need a good internet connection for the upgrade procedure.
  • You may need an hour or less depending on your internet speed for the entire upgrade procedure.
  • Furthermore, you might not see the option to upgrade right after the release of a new version. Upgrades roll out in bunches, and it may take a few days before you get it. You may force an upgrade, though.

Precheck before you start the upgrade

Upgrade path to Ubuntu 22.04
Upgrade path to Ubuntu 22.04

The upgrade to 22.04 is available from 20.04 and 21.10.

If you are using Ubuntu 18.04, you’ll have to upgrade to 20.04 first and then upgrade to 22.04. I would recommend a fresh install rather than two major version upgrades but it is up to you to decide if you want a fresh install or not.

For any other version, you’ll have to go for a fresh installation.

Check your Ubuntu version to ensure that you are using 20.04 or 21.10:

lsb_release -a

Next, you should make sure that all the crucial applications (you cannot function without) are available in the new Ubuntu version. For example, if you use a specific embroidery software for your business, and it is not available for the new release yet, you may want to hold on to the upgrade.

If you take every step carefully, please ensure that

  • You have copied the contents of the home directory to an external USB. This is optional, but could help if anything goes wrong in some unlikely cases.
  • You have a live Ubuntu USB or access to another computer so that you can do a fresh installation of Ubuntu in the unlikely event of a failed upgrade.

With that aside, let’s focus on the upgrade procedure. There are two ways to upgrade to a new version like Ubuntu 22.04, and I have shown both ways here:

I am using default Ubuntu with GNOME desktop, but the same steps should be applicable to other Ubuntu flavors such as Kubuntu, Xubuntu, etc.

Method 1: Upgrade to Ubuntu 22.04 graphically (for desktop users)

Go to Software & Updates:

Search for Software and Updates in Ubuntu Activities Overview search box
Software and Updates in Overview

And under the Updates tab, make sure that Notify me of a new Ubuntu version is set to:

  • Any new version (if you want to upgrade to any new release).
  • Long term support release (if you want to upgrade to only LTS release)
Ubuntu 21.10 software and updates, where update notification is set to any new version
Ubuntu 21.10 Software and Updates Settings

This will reload the Software repository cache.

Once the correct Software Sources settings are in place, open a terminal and use the command below to update the system. It may take some time, depending on your internet speed.

sudo apt update && sudo apt dist-upgrade

If you are asked to do a system restart, restart your system.

Run Update Manager so that it looks for distribution upgrades.

sudo update-manager

This will open the Software Updater, and it should notify you of the availability of Ubuntu 22.04.

Ubuntu Software Updater showing 22.04 update available
Showing 22.04 Update is Available

If you don’t see the availability of a new version, try running the command:

sudo update-manager -d

Obviously, click on Upgrade. The rest of the process is fairly easy. All you have to do is to follow the on-screen instructions.

It will download the release upgrade tool.

And then it will prepare your system for the upgrade by setting new software repositories.

Upgrade: Preparing to upgrade to 22.04
Distribution Upgrade

And at this stage, you’ll be asked to actually upgrade your system. This is the point of no return. You cannot go back from here, so make sure you have a reliable internet. The entire process may take anywhere from 20 minutes to 90 minutes, depending on your internet speed.

Upgarde tool asking the user to confirm start upgrading
Upgrade Info and Confirmation

Now your system will be installing the new Ubuntu 22.04 packages.

Upgrade: Downloading new packages
Downloading Packages and Installing

After some time, you’ll be asked whether you want to keep the obsolete packages from the previous Ubuntu install. I advise removing them.

Updater notifies about the obsolete packages. Either keep them or remove it. It is advised to remove them here.
Keep or Remove Obsolete Packages

At this point, you have already completed the Ubuntu 22.04 upgrade process. Your system will be restarted.

After the restart, you’ll see the Ubuntu 22.04 default wallpaper.

That’s it. That’s all you needed to do to upgrade to Ubuntu 22.04 from Ubuntu 21.10 and 20.04. Enjoy Ubuntu 22.04.

Method 2: Upgrade to Ubuntu 22.04 using command line

You need to make sure that you have the update-manager-core package installed. Open a terminal and run the following command:

sudo apt install update-manager-core

Make sure that you have Prompt set to LTS in the file /etc/update-manager/release-upgrades.

Prompt set to LTS "/etc/update-manager/release-upgrades" file
Prompt set to LTS

You should also install any pending software updates:

sudo apt update && sudo apt dist-upgrade

After this, run the following command to upgrade to Ubuntu 22.04:

sudo do-release-upgrade

This command will search for a newer Ubuntu version. If it finds a new version, it will download the files, around 1.5 GB in size, and then will ask you if you want to install those new packages. If you choose yes, your upgrade procedure starts.

As I said previously, you might not see the availability of the new version immediately. You may see “no new release found”.

Bonus Tip: Post upgrade check

Once you have upgraded successfully, you can start enjoying the new version. But don’t forget the third-party repositories that had been disabled before the Ubuntu version upgrade.

Third party sources disabled during update
Third party sources disabled during update

Go to Software & Updates. You’ll find that PPAs are listed with comments like “disabled during upgrade”. Tick the checkboxes to enable the PPAs.

The PPAs, that are disabled during the upgrade process is listed in the Software and Updates application
PPA Disabled

The job is not over yet. Some PPAs might not be available in the new Ubuntu version. How to know that? Just run this command in the terminal:

sudo apt update
If there is no release file for a package in the PPA, for the current version of Ubuntu, running the update command will give you an error
Invalid PPA Error

Do you see any error about repositories not being found for Jellyfish, as shown in the screenshot above? If yes, you should disable the repositories it is complaining about again.

Troubleshooting: What to do if the upgrade fails for some reason

Check if you can still boot into the system and if the old system version is still available.

If not, see if you can access the recovery and boot into an older kernel.

If that too doesn’t work, it’s time to utilize the backup. Do a fresh installation of the new version and get the data back from the backup USB disk.

Upgrading is usually smooth, but no harm in being careful

Are you installing fresh Ubuntu 22.04? Take a look at these important things to do after installing it.

Things to do After Installing Ubuntu 22.04
Here is a list of simple tweaks and things to do after installing Ubuntu 22.04, to get a smoother and better experience. I presume that you are absolutely new to Ubuntu while sharing these tips. If you are an existing Ubuntu user, some tips may sound too elementary to

In case you forgot your password, this tutorial will help.

How to Reset Forgotten Ubuntu Password in 2 Minutes
If you forgot your user password on Ubuntu, don’t worry. You can reset an Ubuntu password very easily. This guide explains an easy method for changing the root password on Ubuntu. The method should also be applicable to other Linux distributions.

Do you want to get the latest mainline kernel in your Ubuntu? Use this detailed guide.

Install the Latest Mainline Linux Kernel Version in Ubuntu
This article shows you how to upgrade to the latest Linux kernel in Ubuntu. There are two methods discussed. One is manually installing a new kernel and the other uses a GUI tool providing even easier way.

I don’t remember the last time the upgrade procedure failed me. However, having proper backup and contingency are signs of a mature and alert computer user.

I hope this tutorial helps you in upgrading to Ubuntu 22.04 LTS. If you face any issues or have any questions, please let me know in the comment section.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.