On 23rd April 2020, Canonical released Ubuntu 20.04 LTS, and every programming enthusiast wants to upgrade their system from Ubuntu 18.04 LTS desktop to Ubuntu 20.04 LTS. This Ubuntu 20.04 is an LTS or Long Term Support release, which means Ubuntu users will get the latest updates till April 2025.
It is easy to upgrade Ubuntu 18.04 to Ubuntu 20.04, but it requires a specific procedure. This article elaborates on the complete process to upgrade Ubuntu 18.04 to Ubuntu 20.04. We have also included all of the tips and trips necessary to upgrade your system smoothly.
How to Upgrade Ubuntu 18.04 to Ubuntu 20.04
Things to Do Before Upgrade
The upgrade process can be executed by the Ubuntu update manager and the command line as well. This upgrade process will begin after the three months of the official release. However, before upgrading the system, you have to create a full backup of your files to restore them after upgrading the system.
To create a backup:
- You can use the inbuilt backup tool of Ubuntu.
- You can also copy the essential files to other devices such as a USB drive, hard disk, other computer networks, etc.
- Apart from it, you can also use third-party software to make backups of the data to use CloneZilla for it.
In case you want to make sure that everything works well on your system, you can download the image file of Ubuntu 20.04 LTS ISO and copy it into the USB drive through a live media creation tool UNetbootin. Also, ensure that your hard disk must have sufficient free space of almost 25 GB.
**Note: Upgrading Ubuntu is a little time-consuming process, so don't cancel the procedure because it can create software issues in the system. Make sure that your system is correctly connected with the battery charger.
How to Upgrade Ubuntu 18.04 to 20.04 Using Graphical Guided Wizard
We have already mentioned, the Ubuntu system will start to provide Ubuntu after three months of releasing the new update. In case you want to do it before three months of release, you can use the below commands in the terminal to launch your graphical guided wizard.
sudo do-release-upgrade -h
In the above command lines, we have used specific commands to instruct the system regarding certain information.
-h is used for checking the available options in the do-release-update tool.
-d is executed for upgrading the system to 20.04 as the full form of this command is "development."
-f will be executed for launching a graphical guided wizard.
Therefore, to start the upgrade to Ubuntu 20.04 LTS using a GUI tool, execute the below command to start the upgrade process by Gtk3-based GUI.
sudo do-release-upgrade -d -f DistUpgradeViewGtk3
How to Upgrade 18.04 LTS to 20.04 LTS Using a Command-line
Upgrading a system using the command line is a straightforward procedure, but it requires a step-by-step process.
First, open the Linux terminal and execute the below command in it:
~$ sudo apt update
~$ sudo apt upgrade -y
The above apt command will install all of the required update packages
After installing updates and kernel, reboot your system to make changes successful. Use the below command for rebooting the system:
~$ sudo reboot
Once the system reboots, it will recommend you to remove all of the unused kernels to free the boot partitions. So you can run the below command for it:
~$ sudo apt --purge autoremove
Next, execute the below command for installing the "update-manager-core. "
~$ sudo apt install update-manager-core -y
It is needed for upgrading the system, and it is preinstalled in most of the systems.
Run the following command for viewing the location of the new 20.04 LTS version
~$ sudo do-release-upgrade
In case you get the message "There is no development version of an LTS available," then use the above command via passing a parameter "-d" to see the latest LTS version.
Run the below command for starting the upgrade procedure
~$ sudo do-release-upgrade -d
In the upgrade procedure, the system will ask you multiple times to type "y" for updating package repositories but in some cases type "enter" for confirming to process the upgrade,
After the successful upgrading of the system, you will get the below message on your screen:
installing snap gtk-common-themes
installing snap snap-store
removing snap gnome-calculator
removing snap gnome-characters
removing snap gnome-logs
Searching for obsolete software
Reading state information... Done
Remove obsolete packages?
43 packages are going to be removed.
Continue [yN] Details [d]
System upgrade is complete.
To complete the upgrade, a system restart is required. If you select 'y' the system will restart.
Continue [yN] y
The above message confirms that the upgrade process is completed, so press Y to restart your system.
After restarting the system, open the terminal, then execute the following command to verify the Ubuntu version:
~$ cat /etc/lsb-release
This command will provide complete information regarding the Ubuntu version of your system. If the above command will not work, you can check here on how to find the Linux version.
How to Upgrade Ubuntu 18.04 to 20.04 Using GUI
- First, search the Updater in the search dash and open it. In case there are any updates available, then click on the Install Now to download it.
- Restart your system after successfully installing the update
- After restarting the system, search Software & Updates in the search dash and open it.
- In the Updates Tab, set the "For long-term support versions" through the drop-down menu of "Notify me of a new Ubuntu version."
- In case no updates are appearing on the screen, press the Alt and F2 keys and enter this command as "
update-manager -c -d"
- Now execute the command by pressing the Enter button, and you will see an option that says Ubuntu 20.04 LTS is available for upgrade.
- Next, click on the "upgrade" to begin the upgrade process, and this will ask you to provide the user's credentials.
- Once you provide the user's credentials, follow all of the on-screen instructions to complete the upgrade procedure.
- Click on the "Restart Now" after completing the procedure.
- After restarting the system, login and verify the Ubuntu version.
- Now, open the Settings and open the about section, so in the about section, you will see the Ubuntu version as Ubuntu 20.04 LTS.
This article is created for coding geeks to upgrade their system and use the latest features from Ubuntu. We have included all of the required details to upgrade Ubuntu 18.04 to Ubuntu 20.04 without having any trouble. This article covers multiple ways to easily upgrade a system but remember that these procedures must be done step by step to avoid errors.
As explained and warned earlier, never stop the upgrade process in the middle of the completion because it can cause severe software damages to your system. The procedure will take a little bit of time to get completed, so ensure that you have connected your system with the adapter not to go shut down in the upgrading process.
We have provided complete information, but if you have any queries, let us know in the comment section, and we will try our best to give you a solution as soon as possible.