Skip to content

Instantly share code, notes, and snippets.

@puncoz
Last active January 2, 2024 19:59
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save puncoz/6608c891810355f6336917c93ff40012 to your computer and use it in GitHub Desktop.
Save puncoz/6608c891810355f6336917c93ff40012 to your computer and use it in GitHub Desktop.
Arch Linux: missing keyring issue on updates

error: key "CEB167EFB5722BD6" could not be looked up remotely error: required key missing from keyring error: failed to commit transaction (unexpected error)

$ sudo pacman-key --lsign-key CEB167EFB5722BD6

if this gives error ERROR: CEB167EFB5722BD6 could not be locally signed.

$ sudo pacman-key --refresh-keys

If it still gives error ERROR: A specified local key could not be updated from a keyserver.

Run following commands

$ sudo pacman -Scc

$ sudo pacman -Syy Here:

  • -S: Sync packages
  • -yy: refresh package database, force refresh even if local database appears up-to-date

$ sudo pacman -S archlinux-keyring $ sudo pacman-key --init $ sudo pacman-key --populate archlinux $ sudo pacman -Syu

@gnull
Copy link

gnull commented Dec 4, 2022

I remember encountering this once and getting things to work using your commands. But somehow it's not working this time.

In the end, I fixed it by scping the whole /etc/pacman.d/gnupg from my other machine (I know, it sounds very unclean). It fixed everything.

@adriannaluz
Copy link

Thank you very much, it was exactly what I needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment