How to Upgrade from Ubuntu 20.04 To 22.04 Using Command Terminal


Hello friends today we will discuss a different topic. And the set is how to upgrade Linux OS Ubuntu 20.04 to 22.04, just by the "do-release-upgrade" command. So today we will upgrade our Linux OS Ubuntu server from 20.04 to 22.04 version. So let's begin.

Step-1

The first thing to do is switch to Root User.

sudo -i

Step-2

Let's first look at our current version.

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

Step-3

Above is the information on our current version. Now we will install the packages first to update, and reboot the system.

apt update
apt upgrade
reboot

Step-4

Then Unused Packages should be removed.

apt autoremove

Step-5

Remember to remove Unused packages first. Now we can start updating our Ubuntu version.

do-release-upgrade
Another important point is that if you have third-party repositories configured on your current system, they will be automatically disabled if they are not compatible with the new version of Ubuntu.

Then when asked whether to restart service, you need to answer "Yes"
We agree to remove obsolete packages. Then when the update process is finished, accept the system reboot request.

Step-6

When you realize after reboot your system update is done. Then check the version again.

lsb_release -a


See also my article:
Disable Auto-update On Ubuntu 18

Post a Comment

Previous Post Next Post

Contact Form