Pacman -Syyu error: GPGME error: No data and failed to update due to invalid or corrupted database

Hello,

I noticed some updates pending, so tried to install them with:

sudo pacman -Syyu

but the output reads:

error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronising package databases...
 core                  166.6 KiB   505 KiB/s 00:00 [######################] 100%
 core.sig             1057.0   B  0.00   B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update core (invalid or corrupted database (PGP signature))
 extra                2007.1 KiB   934 KiB/s 00:02 [######################] 100%
 extra.sig            1057.0   B  0.00   B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update extra (invalid or corrupted database (PGP signature))
 community               6.5 MiB  2.67 MiB/s 00:02 [######################] 100%
 community.sig        1057.0   B  0.00   B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update community (invalid or corrupted database (PGP signature))
 multilib              181.3 KiB  6.56 MiB/s 00:00 [######################] 100%
 multilib.sig         1057.0   B  0.00   B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update multilib (invalid or corrupted database (PGP signature))
error: failed to synchronize all databases

My first thought was to just restart my machine, but the problem persisted.

I have also followed the advice from this thread: Error: failed to update multilib (invalid or corrupted database (PGP signature)) including removing the gnupg directory and regenerating it but unfortunately this has not resolved the issue.

I am on the stable branch.

Any help is appreciated. Many thanks!

Try this:

sudo pacman-mirrors -f 5
sudo pacman -Syyu
1 Like

That seems to have done the trick. No more errors. Interestingly, it also says that there are no updates to perform now. Iā€™m fine with that too :slight_smile:

Yeah, I think it was an issue with the mirror that pacman was currently using. Using pacman-mirrors helps fix the issue to get the more up-to-date mirrors.

1 Like

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