This article contains some tips to ease the upgrade LTS in a productivity scenario/work environment.
I. preparation and backup
Because it is my working Ubuntu, backup is essential before even thinking about upgrade. not only documentation, configuration under `/etc` should also be backed up.
Follow the guide in https://www.cyberciti.biz/faq/upgrade-ubuntu-18-04-to-20-04-lts-using-command-line/ except the upgrade command:
RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 update-manager -d
RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1will try to enable PPA if focal’s PPA is available. It is a new feature after Ubuntu 18.10, I think.
Another preparation is get the python3 packages list installed by
pip3 , do not worry about python2, you should not use it any more.
ls /usr/lib/python3/dist-packages for system apt installed “python3-*”
ls /usr/local/lib/python3.6/dist-packages/ for sudo pip3 installed
ls ~/.local/lib/python3.6/dist-packages/ for pip3 installed
to save the list
pip3 list --path "one_path_from_above" > pip_installed_list.txt for all 3 paths