Signature issues when updating using pacman
Sometimes pacman -Syu fails for me due to issues with package signatures.
This can be largely avoided if you regularly update your system with pacman -Syu and it mostly happens for me after I haven't used my Linux system in a while.
For example:
error: runc: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/runc-1.0.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
This can give the following error:
Failed to commit transaction (invalid or corrupted package).
It typically helps to manually update the keyring before updating other packages.
pacman -Sy archlinux-keyring