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.
$ 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
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
scp
ing the whole/etc/pacman.d/gnupg
from my other machine (I know, it sounds very unclean). It fixed everything.