Upgrading is simply a matter of ensuring Bionic is up to date, switching to the Focal repositories and performing and update and upgrade to Focal. e.g.
Bionic Current
1 2 3 4 5 |
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS" |
Update Bionic
1 2 |
$ sudo apt update $ sudo apt -y dist-upgrade |
Change Repositories
You may have to check and change any sources you may have in /etc/apt/sources.list.d/ to point to Focal
1 |
$ sudo sed -i 's/bionic/focal/g' /etc/apt/sources.list |
Update and Upgrade to Focal
1 2 |
$ sudo apt update $ sudo apt -y dist-upgrade |
Welcome to Focal
1 2 3 4 5 |
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS" |