Pacman troubleshooting

From wikinotes

Load metadata for package error

The pacman database is corrupt. Simply delete the package's file, and re-install using force.

sudo rm -rf /var/lib/pacman/local/man-pages-*
sudo pacman -S --force man-pages

Python Upgrade Handling

When arch upgrades it's python interpreter version,
official packages will get new versions,
but AUR packages may not.

You'll need to rebuild all python AUR packages,
then reinstall them on every host.
I wrote some scripts to make this easiser:

# aurutils server
bin/build_aur_packages_in_container -c python -r

# on all hosts
pacman-reinstall-outdated-python-pkgs