PGP Signatures not valid

Hi,
I havent had this issue before. When running the update command:
sudo pacman -Syyu

I get this error below:
Invalid or corrupted package (PGP signature) ::For all of the new packages.

I have tried to run:
LANG=C sudo pacman-key --refresh-keys
And each signature can not be updated.

I get this error:
==> ERROR: Could not update key::******key

Any ideas how tgo fix this? This is very odd.

Hi @Mangled ,

Could you please run


sudo pacman -S archlinux-keyring

sudo pacman -U https://sourceforge.net/projects/rebornos/files/r/RebornOS/rebornos-keyring-20231128-1-any.pkg.tar.zst

sudo pacman-key --init

sudo pacman-key --populate rebornos archlinux

sudo pacman-key --refresh-keys

sudo pacman -Syyu

sudo pacman-key --populate rebornos archlinux
==> Appending keys from rebornos.gpg…
==> Appending keys from archlinux.gpg…
gpg: public key of ultimately trusted key 0C0DCFB79EA9082D not found
==> Disabling revoked keys in keyring…
→ Disabled 44 keys.
==> Updating trust database…
gpg: public key of ultimately trusted key 0C0DCFB79EA9082D not found
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 2 signed: 8 trust: 0-, 0q, 0n, 0m, 0f, 2u
gpg: depth: 1 valid: 8 signed: 97 trust: 8-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-04-10
==> ERROR: Trust database could not be updated.

Refreshing keys again also did not work. Same error as before.

Run the below commands

sudo mv /etc/pacman.d/gnupg /etc/pacman.d/gnupg_backup

sudo mv ~/.gnupg  ~/.gnupg_backup # Ignore if there is an error

sudo gpg --refresh-keys

sudo pacman-key --init

sudo pacman-key --populate rebornos archlinux

sudo pacman-key --refresh-keys

sudo pacman -Syyu
1 Like

Thank you so much! Everything is working again :slight_smile:

1 Like

Glad to know that the problem is solved :smile: