• Health tips to prevent the spread of COVID-19:
    • Wash your hands frequently;
    • Maintain 2 meters social distancing;
    • Minimise outdoor activities.
    Stay safe in your bubble!

Upgrade Ubuntu 18.04 Bionic to Ubuntu 20.04 Focal


User ID
7 Jan 2019
Reaction score
In this tutorial, we'll learn how to upgrade Ubuntu Linux 18.04 Bionic Beaver to Ubuntu 20.04 Focal Fossa, as well as what to expect during the upgrade process, etc.

It's a good idea that all packages are up-to-date before proceeding with the distro upgrade:
sudo apt update
sudo apt upgrade
And then run this command to run the distro upgrade:
sudo do-release-upgrade -d
In this prompt, you can safely select <Yes> to allow the upgrader to restart services during package upgrades without bugging you.
Screenshot from 2020-08-14 13-51-18.png

In this prompt, as we can see the only changes is on that SHELL=/bin/sh part, so it's safe to select Y.
Screenshot from 2020-08-14 13-56-17.png

Let's select 4.0 here as the LXD team has recommended us for production environments.
Screenshot from 2020-08-14 13-57-34.png

If you have a custom SSH port, you can proceed to install the package maintainer's version provided you then update the custom port on /etc/ssh/sshd_config again.
Screenshot from 2020-08-14 14-03-36.png

It's a good idea to remove obsolete packages that are no longer required on the new distro version, so let's go ahead and remove them.
Screenshot from 2020-08-14 14-06-34.png

Last, but not least, restart the system to complete the system upgrade.
Screenshot from 2020-08-14 14-09-00.png

Let me know if you have any questions or comments by posting them down below 👇
 Short URL: