GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Ubuntu Upgrade |
20201110 A command line method to upgrade your installation of Ubuntu to a new release (new releases happen every six months, in April and October) is using do-release-upgrade:
$ wajig update $ wajig distupgrade $ do-release-upgrade |
If for some reason that is problematic then the traditional upgrade path is simply to edit the /etc/apt/sources.list file to identify the new repository. There may be further files in /etc/apt/sources.list.d/ that also require updating.
In the following example the distribution is updated from bionic to focal.
$ sudo apt update; sudo apt install python3-pip $ sudo pip3 install wajig; wajig update; wajig distupgrade $ sudo perl -pi.bak -e 's|bionic|focal|g' /etc/apt/sources.list $ wajig update; wajig distupgrade |
This approach works but is not generally recommended.