How to Upgrade Ubuntu from 20.04 to 22.04 (Step by Step)

How to Upgrade Ubuntu from 20.04 to 22.04 (Step by Step). In this post, we show you how to upgrade Ubuntu from 20.04 to 22.04.

Ubuntu 22.04 LTS also called Jammy Jellyfish was released on April 21, 2022, by Canonical. It is also long term support version and supported until April 2027. Ubuntu 22.04 comes with a new enhancement, a number of software packages, and some powerful features that make your life easier.

  • PHP 8.1.2
  • Python 3.10.4
  • OpenSSL 3.0
  • Linux kernel v5.15.0-25 & MESA 22
  • Ruby 3.0

New Features in Ubuntu 22.04

Ubuntu 22.04 comes with many useful features and changes. Some of them are listed below:

  • GNOME 42 – Ubuntu 22.04 comes with the latest GNOME 42 version with a user-friendly interface and several customize options. It also comes with a new screenshot tool for both video recording of desktop and screencast.
  • Dock Mode – This feature allows you to change the size of the dock as per your need. Also use it with auto hide feature.
  • Multitasking Setting – With this new feature, you don’t need any GNOME tweak tool to access this setting. You can easily enable hot corners using this feature.
  • Desktop Icons – In this feature, the position of the new desktop icons is now in the bottom right corner.
  • Control Mounted Device – This feature allows you to control the behaviour of mounted drives in the dock. Show or hide the mounted device as per your requirement.
  • Multimonitor settings – This feature only supports two monitor setup only. It allows you to get the option to join displays, mirror them or use only one of them.
  • Raspberry Pi Support – Ubuntu 22.04 desktop version is now supported on Raspberry Pi devices. However, it can work only on 8 GB Raspberry Pi version.
  • Native RDP support – Ubuntu 22.04 comes with Remina software pre-installed. Use this tool to connect Windows system via RDP protocol.

There are two methods to upgrade to Ubuntu 22.04 version. The clean upgrade method and inline upgrade method.

Clean Upgrade

In this method, you will need to download the Ubuntu 22.04 ISO image from their official download page, then boot your system from the ISO. Following that you need to format your existing installation and then install the newer version of Ubuntu on your system. Advice: this method is not suitable, because you need to backup all your configuration file and reinstall all necessary software on the new system.

Inline Upgrade

In this method, you upgrade your existing system without losing any configuration files and reinstalling applications. Perform an inline upgrade via GUI or CLI method. This method downloads and installs all packages and a new releases of the operating system on the same system. Compared to a clean upgrade, this method is the fasted method to perform the upgrade.

How to Upgrade Ubuntu from 20.04 to 22.04 (Step by Step)

In this section we navigate you through steps how to upgrade from Ubuntu 20.04 to Ubuntu 22.04.


Before you start with the system upgrade process, please check the following requirements. If anything missing from the below list, you must implement it before the upgrade process.

  • A root user or a user with sudo privileges is configured on your server with SSH access.
  • Minimum 20 GB of free disk space available on your system.
  • Fast and stable internet connection to perform the upgrade.
  • Close all running applications.

Backup Your Important Data

Before upgrading your system, it is always recommended to backup your files and directory and place them in a safe location. So if your upgrade process failed then you don’t worry about losing your data. If your server is hosted on the VPS or VM then create a snapshot of your VM to VPS. So that you can restore it easily in the event of a failed upgrade.

Update and Upgrade Existing Packages

First, get a list of all packages that needs upgrade using the following command.

					apt list --upgradable

Next, update the system package cache using the following command.

					apt update -y

Now, upgrade all the packages to the latest version with the following command.

					apt upgrade -y

This will take some time to upgrade all the packages to the latest version. After the successful upgrade, restart your system to use the latest kernel that comes with the new upgrade.


Next, remove all unwanted packages, dependencies and cache with the following command.

					apt clean
apt autoremove

Once you are done, please proceed to the next step.

Verify the Existing Server Version

You also need to verify your existing server version. Easily upgrade it to the newer version. First, get a list of all upgradable packages using the following command.

					lsb_release -a

You should see your current Ubuntu version on the following screen.

Allow Port 1022 Through UFW

By default, SSH uses port 22. However, during the upgrade process, Ubuntu starts the SSH service on port 1022. Connect to your server via SSH if anything goes wrong.

If you are using the UFW firewall and upgrading your server via SSH connection then you will also need to allow port 1022 via UFW. Allow port 1022 with the following command.

					ufw allow 1022/tcp

Then, reload the UFW firewall to apply the changes.

					ufw reload

Once you are done proceed to the next step.

Upgrade Ubuntu 20.04 to Ubuntu 22.04

At this point, your system is now ready to start the Upgrade process. Ubuntu provides a do-release-upgrade tool to make the upgrade process easier.

First, install the update-manger-core package on your system with the following command.

					apt install ubuntu-release-upgrader-core -y

Then, start the upgrade process with the following command.


If there is not any latest version available then you should see the following screen.

Otherwise, you will be notified that an additional SSH service will be started on port 1022. Simply type Y and press ENTER to proceed.

Type Y and press the Enter key to continue. You should see another message. Just press the Enter key. You will see the installation summary.

Type Y and press the Enter key to start downloading packages needed for the upgrade. After some time, you will be prompted “if you would like your server’s services to be restarted automatically throughout the upgrade”

Type Y and press the Enter key to continue the upgrade. You will be asked to select the keyboard.

Select your country of origin for the keyboard and press the Enter key. You will be asked to select the keyboard layout.

Choose your keyboard layout and press the Enter key. You will be asked “whether you wish to preserve these or replace them with the new configuration files included with Ubuntu 22.04”

Select your preferred option and press the Enter key. You will be asked to remove the obsolete packages from your server.

Type Y and press the Enter key to confirm. Once the upgrade process is complete successfully, you will be asked to reboot your system on see the following screen.

Just, type Y and press the Enter key to restart your system.

At this point, your server is upgraded from Ubuntu 20.04 to Ubuntu 22.04. Now verify the upgraded system version. Run the following command to verify the newer version.

					lsb_release -a

You should see the following screen.

How to Upgrade Ubuntu from 20.04 to 22.04 (Step by Step) Conclusion

Congratulations! Your Ubuntu is now upgraded to Ubuntu 22.04. Explore and enjoy new features that come with Ubuntu. Also, investigate your application configuration file and services whether all are working fine or not. 

Avatar for Hitesh Jethva
Hitesh Jethva

I am a fan of open source technology and have more than 10 years of experience working with Linux and Open Source technologies. I am one of the Linux technical writers for Cloud Infrastructure Services.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x