Can't update software - Keys missing from Keyring

Ran sudo pacman -Syyu today
Started full system upgrade, downloaded 300+ files but then got these messages

(316/316) checking keys in keyring                                                          [######################################################] 100%
downloading required keys...
:: Import PGP key 428F7ECC7117F726, "Helmut Stult <helmut@manjaro.org>"? [Y/n] Y
error: key "428F7ECC7117F726" could not be looked up remotely
:: Import PGP key CAA6A59611C7F07E, "Philip Mueller <philm@manjaro.org>"? [Y/n] Y
error: key "CAA6A59611C7F07E" could not be looked up remotely
:: Import PGP key 150C200743ED46D8, "Mark Wagie <mark@manjaro.org>"? [Y/n] Y
error: key "150C200743ED46D8" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Is it possible to fix this? Would appreciate any assistance.

1 Like

Have you tried installing manjaro-keyring by sudo pacman -S manjaro-keyring ?

Can you update with pamac? I had similar key errors but pamac still completed the update

I have the same problem and using pamac does not solve it.

sudo pacman -S manjaro-keyring

runs into the same problem. All the solutions I found online are not working either.

Verify that your system’s time and date are corrrect

You can try to reset gpg keys database:

sudo mv /etc/pacman.d/gnupg /etc/pacman.d/gnupg.old
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --keyserver hkps://sks.pod02.fleetstreetops.com --refresh-keys

There is currently a problem with the default keyserver for gpg. I recommend to do this:

sudo sh -c 'echo keyserver hkps://sks.pod02.fleetstreetops.com >> /etc/pacman.d/gnupg/gpg.conf'
echo keyserver hkps://sks.pod02.fleetstreetops.com >> ~/.gnupg/gpg.conf

After that try again to update the system:

sudo pacman -Syyu

Edited: Fix typo

3 Likes
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --keyserver hkps://sks.pod02.fleetstreetops.com --refresh-keys

These two failed because of

==> ERROR: The keyring file /usr/share/pacman/keyrings/manjaro.gpg does not exist.

and

==> ERROR: A specified local key could not be updated from a keyserver.

In sudo sh -c 'echo keyserver hkps://sks.pod02.fleetstreetops.com >> /etc/pacman.d/gnugp/gpg.conf' there is a typo where you inverted g and p in gnupg but then it worked and I was able to update the system. Thank you!

Thanks for pointing out the typo. I edited my post.

Are you in Manjaro? The manjaro-keyring package is “mandatory” in Manjaro. Pacman itself depends on it. Why don’t you have it?