Fix invalid PGP signature on Arch Linux install
Jump to navigation
Jump to search
Recently I had an issue when I was trying to install Arch Linux onto a server, where pacman would refuse to finish due to a package named libcap being "corrupted". The exact error was:
error: libcap: signature from “David Runge [email protected]” is marginal trust
File /var/cache/pacman/pkg/libcap-2.65-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Fortunately, the fix was really easy, all you have to do is this:
- Go into the terminal and type the following commands:
- pacman -Syy
- pacman -S archlinux-keyring
Then run pacman again. Afterwards, the error will be fixed!