Update problem: error: GPGME error: No data

Today I tried to continue but as fresh start I always check updates.
Something gone wrong - but i dont know what - cos I just uninstall asusctl
Yay gave corrupted database.
I have tried this line:

[type or paste code here](https://forum.maboxlinux.org/t/solved-updates-issues/1651)

Unsuccessful.

joe@joe-Asusgx502gw ~ $ yay
[sudo] password for joe: 
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 maboxlinux             22,6 KiB  83,5 KiB/s 00:00 [######################] 100%
 core                  141,7 KiB   124 KiB/s 00:01 [######################] 100%
 extra                   8,3 MiB   260 KiB/s 00:33 [######################] 100%
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))
 -> error refreshing databases - exit status 1

After this I will follow your instructions.
Thank you.

I wonder how this could have happened… Power outage during update…? :thinking:

It’s a very difficult situation, like Catch-22.
You can’t repair the database without installing packages - you can’t install packages because the database is corrupted.

Only the nuclear option remains.

Based on "error: GPGME error: No data" when I'm trying to update - #6 by lectrode - Support - Manjaro Linux Forum modified for Mabox.

The 5 lines of code below should resolve the issue. They essentially do the following:

  • backup current pacman.conf
  • turn off all signature checks
  • download/install gnupg and keyring packages (ignore manjaro-system updates for now)
  • restore original pacman.conf settings (which turns signature checks back on)
  • update system
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 mabox-keyring --ignore manjaro-system
sudo mv -f "/etc/pacman.conf.orig" "/etc/pacman.conf"
sudo pacman -Syu

I dont know really… I just made yay - as usual.

type or paste code here
joe@joe-Asusgx502gw ~ $ 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 mabox-keyring --ignore manjaro-system
sudo mv -f "/etc/pacman.conf.orig" "/etc/pacman.conf"
sudo pacman -Syu
[sudo] password for joe: 
:: Synchronizing package databases...
 maboxlinux             22,7 KiB  85,4 KiB/s 00:00 [######################] 100%
 core                  141,7 KiB   191 KiB/s 00:01 [######################] 100%
 extra                   8,3 MiB   514 KiB/s 00:17 [######################] 100%
warning: gnupg-2.4.7-1 is up to date -- reinstalling
warning: archlinux-keyring-20250123-1 is up to date -- reinstalling
warning: manjaro-keyring-20230719-3 is up to date -- reinstalling
warning: mabox-keyring-20250112-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (4) archlinux-keyring-20250123-1  gnupg-2.4.7-1
             mabox-keyring-20250112-1  manjaro-keyring-20230719-3

Total Download Size:    4,05 MiB
Total Installed Size:  11,79 MiB
Net Upgrade Size:       0,00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 mabox-keyring-20...    10,8 KiB   142 KiB/s 00:00 [######################] 100%
 manjaro-keyring-...    89,9 KiB  99,6 KiB/s 00:01 [######################] 100%
 archlinux-keyrin...  1206,9 KiB   265 KiB/s 00:05 [######################] 100%
 gnupg-2.4.7-1-x86_64    2,8 MiB   372 KiB/s 00:08 [######################] 100%
 Total (4/4)             4,1 MiB   544 KiB/s 00:08 [######################] 100%
(4/4) checking keys in keyring                     [######################] 100%
(4/4) checking package integrity                   [######################] 100%
(4/4) loading package files                        [######################] 100%
(4/4) checking for file conflicts                  [######################] 100%
(4/4) checking available disk space                [######################] 100%
:: Processing package changes...
(1/4) reinstalling gnupg                           [######################] 100%
(2/4) reinstalling archlinux-keyring               [######################] 100%
==> Appending keys from archlinux.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2025-06-16
(3/4) reinstalling manjaro-keyring                 [######################] 100%
==> Appending keys from manjaro.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 3 keys.
==> Importing owner trust values...
==> Updating trust database...
gpg: next trustdb check due at 2025-06-16
(4/4) reinstalling mabox-keyring                   [######################] 100%
==> Appending keys from mabox.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2025-06-16
:: Running post-transaction hooks...
(1/5) Reloading system manager configuration...
(2/5) Reloading user manager configuration...
(3/5) Restarting marked services...
(4/5) Arming ConditionNeedsUpdate...
(5/5) Updating the info directory file...
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 maboxlinux is up to date
 core                  141,7 KiB   246 KiB/s 00:01 [######################] 100%
 extra                   8,3 MiB   571 KiB/s 00:15 [######################] 100%
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

Try:

sudo pacman-key --init
joe@joe-Asusgx502gw ~ $ sudo pacman-key --init
[sudo] password for joe: 
joe@joe-Asusgx502gw ~ $ yay
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 maboxlinux is up to date
 core                  141,7 KiB   151 KiB/s 00:01 [######################] 100%
 extra                   8,3 MiB   535 KiB/s 00:16 [######################] 100%
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))
 -> error refreshing databases - exit status 1

I’m out of ideas. Maybe you can find a solution using the search engine here on the forum - there are a few similar topics :), or on the Internet.

The same GPGME error problem is here…

Before I wrote I have tried - Im sure not all of them, but. I have tried.
I tried the links - and the suggestions. CLI is full of gpg errors.

I think every problem has a solution, but in this case I am lack of knowledge. I dont beleive that I will find the solution. I will reinstall.

Thank you. :slight_smile:

Hi, what kernel are you using, just today I tried with 5.10… and I could not update, it gave error, it is corrected using 6.12…
As for the keys, follow the process that @napcok mentioned in manjaro.
I was having those problems until a couple of days ago and this is what I did:

sudo mv /etc/pacman.d/gnupg{,.old}
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --refresh-keys
sudo pacman-key --keyserver hkps://sks.pod02.fleetstreetops.com --refresh-keys
sudo sh -c 'echo keyserver hkps://sks.pod02.fleetstreetops.com >> /etc/pacman.d/gnupg/gpg.conf'
echo keyserver hkps://sks.pod02.fleetstreetops.com >> ~/.gnupg/gpg.conf

And mirrors

sudo pacman-mirrors -c all
pacman-mirrors -l
sudo pacman-mirrors -f 5 
sudo pacman -Syy

This is what helped me to upgrade my system and solved all the problems I was having in that area.
Good luck to you

I use 6.6.84-1
Tried this one too, but not working. I will reinstall. Not a big deal. Thank you :slight_smile:

1 Like