Problems to update: error: GPGME error: No data

Hi, I have problems to update, using pacman:

sudo pacman -Syyu is giving me…

error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core                  143,2 KiB   197 KiB/s 00:01 [######################] 100%
 extra                   8,3 MiB  3,72 MiB/s 00:02 [######################] 100%
 multilib              147,9 KiB  1138 KiB/s 00:00 [######################] 100%
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

I tried the usual approach (below) already, but this didn’t fix it. What else do I need to do? Thanks!

sudo cp -f "/etc/pacman.conf" "/etc/pacman.conf.orig"
sudo sed -i 's/SigLevel.*/SigLevel = Never/' /etc/pacman.conf
sudo pacman -Syy gnupg archlinux-keyring manjaro-keyring --ignore manjaro-system
sudo mv -f "/etc/pacman.conf.orig" "/etc/pacman.conf"
sudo pacman -Syu

The message you provided

error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

Points to the sig files being html instead of binary

file /var/lib/pacman/sync/*.sig

The only thing you didn’t do was changing your primary mirror.

sudo pacman-mirrors --continent

Be sure to remove all sig files before syncing again

sudo rm /var/lib/pacman/sync/*.sig
5 Likes

Worked like a charm. Thanks!

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