Ubuntu ****** .. highlight:: html debsums ======= debsums_ is a useful utility to validate packages in a ubuntu or debian system. Usage:: sudo debsums -c If this identifies any problems you can fix them using.:: sudo apt install --reinstall If debsums idenfifies several packages with issues, to fix all of them use:: sudo apt install --reinstall $(dpkg -S $(debsums -c) | cut -d : -f 1 | sort -u) For more information there is a `useful post about debsums on askubuntu`_ Upgrade to 20.04 ================ :: do-release-upgrade .. tip:: If 20.04.1 is still not released when you run this command, then you can upgrade using ``do-release-upgrade -d``. .. tip:: Just so you remember, *an additional SSH daemon will be started at port '1022'*. - Select the recommended option for the *LXD snap track* i.e. version ``4.0`` This message was displayed at the end of the upgrade: .. image:: ./misc/2020-09-22-azure-grub-failed-install.png I clicked *Yes* to continue, and all was well. Salt ---- Uninstall Salt (Master and Minion)... Update:: # /etc/apt/sources.list.d/saltstack.list: deb http://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest focal main Re-install Salt .. _ubuntu-postgres-upgrade-cluster: Postgres Upgrade Cluster ------------------------ To move the data from Postgres 10 to 12, run the following as ``root``:: # list the clusters pg_lsclusters # drop the new (empty) cluster pg_dropcluster 12 main --stop # migrate the data from 10 to 12 pg_upgradecluster 10 main # remove the 10 cluster pg_dropcluster 10 main --stop # remove the old database engine apt remove postgresql-10 # list the clusters pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 10 main 5432 online postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log For more information, see Postgres :ref:`postgres-upgrade-cluster` ... LetsEncrypt ----------- For Ubuntu 20.04, we are using the ``certbot`` package:: rm -rf /opt/letsencrypt For more information, see the ``diff``: `Use 'certbot' package (rather than letsencrypt git repo)`_ .. _`Use 'certbot' package (rather than letsencrypt git repo)`: https://gitlab.com/kb/salt/-/commit/b42453ce8f0c3af436bf91ff0aa4e79a497bb05f .. _`useful post about debsums on askubuntu`: http://askubuntu.com/questions/57682/find-and-reinstall-packages-with-corrupted-files-without-breaking-anything