Error: required key missing from keyring

This is the error when trying to upgrade from https://download.manjaro.org/kde/21.3.7/manjaro-kde-21.3.7-220816-linux515.iso:

# pacman -Suuyy
:: Synchronizing package databases...
 core                                  165.3 KiB  1243 KiB/s 00:00 [####################################] 100%
 extra                                1849.1 KiB  6.52 MiB/s 00:00 [####################################] 100%
 community                               7.1 MiB  6.01 MiB/s 00:01 [####################################] 100%
 multilib                              180.5 KiB  3.83 MiB/s 00:00 [####################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) inxi-3.3.21.1-1  pamac-cli-10.4.2-1  pamac-gtk-10.4.2-1

Total Installed Size:  2.03 MiB
Net Upgrade Size:      0.01 MiB

:: Proceed with installation? [Y/n] Y
(3/3) checking keys in keyring                                     [####################################] 100%
downloading required keys...
:: Import PGP key 150C200743ED46D8, "Mark Wagie <mark@manjaro.org>"? [Y/n] Y
error: key "Mark Wagie <mark@manjaro.org>" could not be imported
:: Import PGP key CAA6A59611C7F07E, "Philip Müller <philm@manjaro.org>"? [Y/n] Y
error: key "Philip Müller (Called Little) <philm@manjaro.org>" could not be imported
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

also

# pacman -S manjaro-keyring
warning: manjaro-keyring-20220514-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) manjaro-keyring-20220514-2

Total Download Size:   0.54 MiB
Total Installed Size:  0.71 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 manjaro-keyring-20220514-2-any        548.8 KiB  2.30 MiB/s 00:00 [####################################] 100%
(1/1) checking keys in keyring                                     [####################################] 100%
downloading required keys...
:: Import PGP key 150C200743ED46D8, "Mark Wagie <mark@manjaro.org>"? [Y/n] Y
error: key "Mark Wagie <mark@manjaro.org>" could not be imported
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

also

# mv /etc/pacman.d/gnupg /etc/pacman.d/gnupg.old
mv: cannot move '/etc/pacman.d/gnupg' to '/etc/pacman.d/gnupg.old': Device or resource busy

also

# sudo rm -fr /etc/pacman.d/gnupg
rm: cannot remove '/etc/pacman.d/gnupg': Device or resource busy

Fixed with this:

sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --keyserver hkps://sks.pod02.fleetstreetops.com --refresh-keys
sudo pacman -Suuyy
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.