Skip to content

Instantly share code, notes, and snippets.

@angelside
Forked from puncoz/arch-missing-keyring.md
Created January 2, 2024 19:59
Show Gist options
  • Save angelside/7fe30c8b9c3ba42bf1a7521c4d544457 to your computer and use it in GitHub Desktop.
Save angelside/7fe30c8b9c3ba42bf1a7521c4d544457 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

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