debsums is a useful utility to validate packages in a ubuntu or debian system.
sudo debsums -c
If this identifies any problems you can fix them using.:
sudo apt install --reinstall <package name>
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¶
If 20.04.1 is still not released when you run this command, then you
can upgrade using
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
This message was displayed at the end of the upgrade:
I clicked Yes to continue, and all was well.
Postgres Upgrade Cluster¶
To move the data from Postgres 10 to 12, run the following as
# 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 Upgrade Cluster …
Obsolete major version 10
The PostgreSQL version 10 is obsolete, but the server or client packages are still installed. Please install the latest packages (postgresql-12 and postgresql-client-12) and upgrade the existing clusters with pg_upgradecluster
Please be aware that the installation of postgresql-12 will automatically create a default cluster 12/main. If you want to upgrade the 10/main cluster, you need to remove the already existing 12 cluster (pg_dropcluster –stop 12 main, see manpage for details).
The old server and client packages are no longer supported. After the existing clusters are upgraded, the postgresql-10 and postgresql-client-10 packages should be removed.
Please see /usr/share/doc/postgresql-common/README.Debian.gz for details.