Error: Key could not be imported

by kiawin

210977249_da533e62a4_o

Do you ever face key could not be imported error during a pacman / yaourt update?

All thanks to the recent bash shellshock bug, I decided to make a full update to my archlinux system. However, I got the following error:

:: Proceed with installation? [Y/n] 
(211/211) checking keys in keyring                                      [########################################] 100%
downloading required keys...
:: Import PGP key 1024D/, "Fabio Castelli <muflone@vbsimple.net>", created: 2009-07-04? [Y/n] 
error: key "Fabio Castelli <muflone@vbsimple.net>" could not be imported
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

The solution is pretty simple. We need to first update archlinux-keyring before proceeding to update other packages.

# sudo pacman -Syy
# sudo pacman -S archlinux-keyring