Jithendra Yenugula

Upgrading Ubuntu to 20.04 LTS

May 01, 2020

I am very excited about the new version of Ubuntu. The beta version was released a month ago. But since it was fairly stable, I didn’t installed it. I killed my excitement and waited for the LTS version. And finally, on April 23rd Ubuntu 20.04 LTS was released. In this post, I’m going to share the process I used to upgrade my Ubuntu from 19.10 to 20.04.

Note: This is only when you are already running some ubuntu version and want to upgrade it to the new version. This is not the process for fresh installation of Ubuntu.

If you want to upgrade the Ubuntu version, you do need to download any .iso file or boot any USB drive. All you need is:

Note: You can upgrade from either Ubuntu 18.04 or Ubuntu 19.10 to 20.04LTS. But, If you are running the 16.04 version you will need to upgrade to 18.04 first and then to 20.04 LTS.

Another Note: Backup of important data is always required while performing a major upgrade. (But, I forgot to backup my data and luckily all the data is safe.)

This can be done using Ubuntu’s built-in do release upgrade tool which is also an easy way to upgrade. But I upgraded manually by updating the sources list with the guidance of Nerd on the street. The reason for upgrading manually is simply to enjoy the essence of linux.

Alright, here are the steps I followed to upgrade -

Step 1: Open the terminal and type the following commands

jithendra@hp:~$ cd /etc/apt jithendra@hp:/etc/apt$ ls

The sources.list file tells ubuntu to what repositories to check in addition to any files in sources.list.d that end in the former one. In order to manually update, both of these should be updated. I started with sources.list

Step 2: Update ‘sources.list’

jithendra@hp:/etc/apt$ sudo gedit sources.list

Step 3: On active lines, replace the codename of previous Ubuntu version with codename of Ubuntu 20.04

After updating sources.list file, I went back and check sources.list.d to see any 3rd party apps and ppa’s that also need to be upgraded. For example, google-chrome, spotify, and ppa’s that I might have installed. But, I dont want any third party applications and ppa’s in the new version. So I simply removed all the existing ppas from source.list.d using this command

sudo rm /etc/apt/sources.list.d/*

But, If you want your ppa’s and apps do the following

Step 4: Come back and verify ‘sources.list.d’

jithendra@hp:/etc/apt$ cd sources.list.d/

jithendra@hp:/etc/apt/sources.list.d$ ls

Step 5: Update and Upgrade

jithendra@hp:/etc/apt/sources.list.d$ cd

jithendra@hp:~$ sudo apt update

jithendra@hp:~$ sudo apt dist-upgrade

or

jithendra@hp:~$ sudo apt full-upgrade

Step 6: Remove the older clutter

jithendra@hp:~$ sudo apt autoremove --purge

Step 7: REBOOT when everything is completed

jithendra@hp:~$ sudo systemctl reboot

Without any errors, My laptop was succesfully upgraded to Ubuntu 20.04 LTS.

Thank you for reading.Hope you find this post helpful.