I have to say, Ubuntu, in the past two years, has improved significantly compared to what it was. Because of what it was, it drove me to use Fedora as my main distro. I have a VM that is running Ubuntu 18.04.2 LTS at this time, and I’m going to upgrade it so I can fully test Ubuntu 20.04 LTS.
Always create a backup of your server, VM, or whatever you’re using. Then proceed with the update.
First, we’re going to upgrade everything.
sudo apt upgrade -y && sudo apt upgrade -y
Second, we’re going to make sure the Ubuntu Update tools are installed.
sudo apt install update-manager-core
Now that that is out of the way reboot your machine. Log back into it when its back up and well needs to do a few things before actually updating to Ubuntu 20.04. I like to clean up the system a bit.
sudo apt --purge autoremove
Once the house cleaning is complete, or you decide to skip it run the following command to upgrade your system to the latest release.
sudo do-release-upgrade -d
The -d option is similar to -f in this case where it will forcefully grab the latest supported releases.
During the upgrade, you will get prompted for some input. But once the upgrade is complete, you will be asked to restart the system. Check your system using lsb_release -a
root@ubuntu:/# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal root@ubuntu:/#