How to upgrade Ubuntu LTS, Bionic to Focal

Written by
Date: 2020-05-01 09:50:00 00:00

Ubuntu has released last month the LTS version, one that comes every two years and with Long Term Support of five years.

I was using 18.04 in my laptop and now I will upgrade to 20.04, so, how to upgrade Ubuntu?

As I always prefer the terminal, let's do it that way.

Update and upgrade your current release

sudo apt-get update && sudo apt-get upgrade


In case of Kernel upgrade, reboot it.

sudo reboot

Delete not used packages

sudo apt-get autoremove

Upgrade release

sudo do-release-upgrade

With that command I got the message that there is no new release available, but we know there is one, so let's force Ubuntu to find and install it.

sudo do-release-upgrade -d

Answer yes, and wait, you will end with the new version of Ubuntu. Do not force the upgrade on servers, better wait until Canonical makes it available for your, I am doing this only in my laptop.