How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS

linux ubuntu banner

In this article we will demonstrate how to upgrade Ubuntu 18.04 LTS to 20.04 LTS. There are two ways to do it either via command line or GUI (Graphical Interface). To complete the upgrade smoothly, a stable internet is required on your Ubuntu system.

Upgrade Ubuntu 18.04 LTS to 20.04 LTS via Command Line

We strongly recommend please the take backup of your existing Ubuntu 18.04, may be on some external drive.
Before start upgrading, let’s take a note of existing Ubuntu Version, open the terminal and run below command.
brao@redaix:~$ lsb_release -a

linux ubuntu release

Step 1) Apply all updates of installed packages

Rub below apt command to install all the updates of installed packages,

rao@redaix:~$ sudo apt update
rao@redaix:~$ sudo apt upgrade -y

Once all the updates are installed including the kernel then reboot your system

Step 2) Remove unused Kernels and install ‘update-manager-core’

Once your Ubuntu 18.04 LTS desktop is available after reboot, then it is recommended to remove unused kernels to free up the space from /boot partition, run beneath command:

brao@redaix:~$ sudo apt --purge autoremove

Execute below command to install “update-manager-core“, as it is required for upgrade, though on most of the systems it should be installed by default. In case it is not installed run below command,

brao@redaix:~$ sudo apt install update-manager-core 

Step 3) Start Upgrade Process

Run following command to view whether new 20.04 LTS version is available for your system.

brao@redaix:~$ sudo do-release-upgrade
linux ubuntu upgrade

If, in the above command’s output, you got a message that “There is no development version of an LTS available” then we can force the above command by passing the parameter “-d” to look for the new latest LTS version.

linux ubuntu force upgrade with option d


During upgrade procedure, it will prompt you couple of times to type “y” to update package repositories and sometime “enter” to confirm to proceed with upgrade,

linux ubuntu continue y or n

Once the upgrade process is completed successfully then we will get following message.

linux ubuntu upgrade complete

Above output confirms that upgrade is completed, upgrade tool prompted us to press ‘y’ to restart the system.

Step 4) Verify Upgrade

Once the system boots after the upgrade, open the terminal type following to verify the Ubuntu version,

linux ubuntu upgrade complete

Another way to verify the Ubuntu version, Go to Settings and then choose About

linux ubuntu version in gui mode

This confirms that we have successfully upgrade our Ubuntu 18.04 LTS to latest Ubuntu 20.04 LTS.

Leave a Reply

Your email address will not be published. Required fields are marked *