4.6 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.



Your donation will support ongoing availability and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.