Invalid or Corrupted GPG Signatures Updating Deps on Arch Linux
Running the following to upgrade packages:
bash
sudo pacman -SyuCan sometimes return:
console
downloading required keys...
:: Import PGP key 9D4C5AA15426DA0A, "Frederik Schwan <freswa@archlinux.org>"? [Y/n] y
error: glibc: signature from "Frederik Schwan <freswa@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/glibc-2.44+r78+gfcfb867c58ab-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
Everywhere says:
bash
pacman -S archlinux-keyringBut this doesn’t usually fix things for me, and if it doesn’t for you, you can try:
bash
# this might be needed first
sudo pacman-key --init
# then run these
sudo pacman-key --populate archlinux
sudo pacman -SyuThe first command imports Arch’s keys and trust data from the installed archlinux-keyring package; the second performs the full upgrade.
Don’t repeat pacman -Sy on its own, and don’t disable signature checking or allow unknown trust to bypass the error.