This will be a be a quick post on how to do a super easy fix for an error in Pacman on Arch Linux.
Today I was having issues installing some packages. Every time I tried to do the install, Pacman would return the following error:
error: failed to commit transaction (invalid or corrupted package (PGP signature))
As the error implies, this is an issues with the PGP keys used to sign the package and refreshing the list of valid signing keys on our system will likely solve the problem. Luckily, this is as easy as running the following command:
$ sudo pacman-key --refresh-keys
After running this I was able to successfully install the problem packages. Hope this helps!