Ubuntu Focal

Upgrade Ubuntu Eoan to Focal

VirgilPosted by

After the upgrade of my development server to Focal, the next step is to upgrade my personal Linux Laptop. The process will be similar, first we will check if our system is up to date.

sudo apt update
sudo apt upgrade -y

Even if Eoan is not a LTS version, it’s not possible for the moment to upgrade to Focal without forcing it.
The classic command should be:

sudo do-release-upgrade

But if nothing appears, like in my case, I will force it.

sudo do-release-upgrade -d

I have optical fiber, so the download is really fast, I don’t have a lot of software installed so the installation won’t take too much time. Validate the questions about the services et validate the reboot at this end.

After the reboot we can check that we are running Ubuntu 20.04 Focal.

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

After the upgrade don’t forget to clean your Ubuntu installation. Be careful, maybe all your software don’t exist yet in this new release, especially the one downloaded from external repositories.

root@Latitude:~# apt list --installed | grep installed,local

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

containerd.io/now 1.2.13-1 amd64 [installed,local]
dbeaver-ce/now 7.0.3~ubuntu16.04 amd64 [installed,local]
docker-ce-cli/now 5:19.03.8~3-0~ubuntu-eoan amd64 [installed,local]
docker-ce/now 5:19.03.8~3-0~ubuntu-eoan amd64 [installed,local]

On my Laptop after removing the old Kernel, Docker and DBeaver are missing, I will have to wait an upgrade from the maintainers. Our system has switched to the LTS channel.

root@Latitude:~# cat /etc/update-manager/release-upgrades | grep Prompt
Prompt=normal

On my personal laptop I prefer to use the latest version even if it’s a bit less stable. Let’s switch to the normal upgrade channel.

root@Latitude:~# sed -i 's/Prompt=lts/Prompt=normal/g' /etc/update-manager/release-upgrades 
root@Latitude:~# cat /etc/update-manager/release-upgrades | grep Prompt
Prompt=normal

The process is finished, just enjoy your up to date Ubuntu system 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *