How to Upgrade Ubuntu 20.04 to 22.04
On April 23, Ubuntu 20.04 LTS (Focal Fossa) was made available to the public. With security patches and updates available through 2025, this is the most recent Ubuntu Long-Term Support (LTS) release. You might want to consider updating if you’re currently running an older version of Ubuntu. We will demonstrate how to safely update from the previous LTS, Ubuntu 18.04 LTS (Bionic Beaver), to the current LTS in this tutorial. We’ll walk you through several ways to accomplish this, including some sophisticated hints and techniques that let you further personalize your upgrade procedure.
Update using the command line to 20.04 LTS.
The upgrade process using the command line is straightforward.
sudo do-release-upgrade
The command will check for the next release of the operating system and will confirm if you want to continue or not. Type “y” and hit enter. Now, the upgrade process will start. it will take some time to upgrade.
During the upgrade process, some services will be restarted and at the end of the upgrade, you’ll be asked to remove obsolete packages. Now you can reboot and wow your Ubuntu is now upgraded to the latest version. You can confirm with the following command.
cat /etc/os-release
Output:

Check the Version and Version_Codename.