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

Hi guys. Whats my next move ? This morning i had one mirror (uk) i added the rest. so mirror quantity isnt the problem.

[kdf-pc@kdf-hp ~]$ sudo pacman-mirrors
[sudo] password for kdf-pc: 
Pacman-mirrors version 4.23.1
Local mirror status for stable branch
Mirror #1   OK  00:11   Austria         ftp://mirror.easyname.at/manjaro/
Mirror #2   OK  00:12   Bulgaria        https://manjaro.ipacct.com/manjaro/
Mirror #3   OK  00:04   Finland         http://manjaro.kyberorg.fi/
Mirror #4   OK  00:04   Germany         https://mirror.alpix.eu/manjaro/
Mirror #5   OK  00:09   Germany         ftp://ftp.gwdg.de/pub/linux/manjaro/
Mirror #6   OK  00:04   Germany         http://manjaro.moson.eu/
Mirror #7   OK  00:04   Germany         http://mirror.moson.org/manjaro/
Mirror #8   OK  00:44   Hungary         http://quantum-mirror.hu/mirrors/pub/manjaro/
Mirror #9   OK  02:40   Italy           https://manjaro.mirror.garr.it/manjaro/
Mirror #10  OK  02:40   Italy           https://ba.mirror.garr.it/mirrors/manjaro/
Mirror #11  OK  00:10   Netherlands     http://manjaro.mirrors.lavatech.top/
Mirror #12  OK  02:45   Netherlands     ftp://ftp.nluug.nl/pub/os/Linux/distr/manjaro/
Mirror #13  OK  02:10   Russia          http://mirror.truenetwork.ru/manjaro/
Mirror #14  OK  00:35   Sweden          ftp://ftp.lysator.liu.se/pub/manjaro/
Mirror #15  OK  00:16   United_Kingdom  https://mirror.cyberhost.uk/sites/manjaro/
[kdf-pc@kdf-hp ~]$ sudo pacman -Syyu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronising package databases...
 core                              168.9 KiB   221 KiB/s 00:01 [##################################] 100%
 extra                            1918.1 KiB  1013 KiB/s 00:02 [##################################] 100%
 community                           6.8 MiB  2.23 MiB/s 00:03 [##################################] 100%
 multilib                          176.5 KiB  1225 KiB/s 00:00 [##################################] 100%
error: failed retrieving file 'core.db' from mirror.easyname.at : Given file does not exist
error: failed retrieving file 'extra.db' from mirror.easyname.at : Given file does not exist
error: failed retrieving file 'community.db' from mirror.easyname.at : Given file does not exist
warning: too many errors from mirror.easyname.at, skipping for the remainder of this transaction
error: GPGME error: No data
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))

Did you search the forum and/or the internet? Youā€™re not the first to encounter this issue. :wink:


Tip: When pasting terminal output on Discourse forums, one can eitherā€¦

  • Use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    type or paste code here
    ```

  • Use HTML:

    <pre><code>
    type or paste code here
    </pre></code>

Please edit your post accordingly.

Hello @damod11 :wink:

While itā€™s true that there are a lot of examples how to solve this, you can also try this script for automated fixing:

megavolt/random-pacman-beef: Automated scripts for fixing various errors of pacman/pamac on Manjaro. - NotABug.org: Free code hosting

At this stage, I would call it a working prototype.

2 Likes

How do I run this ?

I believe this is what youā€™re looking for: [root tip] Mitigate and prevent GPGME error when syncing your system

As @Yochanan said, if you searched youā€™d have noticed youā€™re not the first person to have had this.

1 Like

Download the raw file:

wget https://notabug.org/megavolt/random-pacman-beef/raw/master/fix-keys.sh

and run it:

bash fix-keys.sh
1 Like

I spent 5 hours on searching and trying before I posted here and yes I came across and tried your suggestion without success.
Iā€™ll try that script later.

Well, Iā€™m just ignoring the ā€¦ ā€œproblemā€, because itā€™s not a problem.

[kdf-pc@kdf-hp ~]$ wget https://notabug.org/megavolt/random-pacman-beef/raw/master/fix-keys
ā€“2021-12-24 13:40:02-- https://notabug.org/megavolt/random-pacman-beef/raw/master/fix-keys
SSL_INIT
Loaded CA certificate ā€˜/etc/ssl/certs/ca-certificates.crtā€™
Resolving notabug.org (notabug.org)ā€¦ 176.9.32.93, 2a01:4f8:150:3445::3
Connecting to notabug.org (notabug.org)|176.9.32.93|:443ā€¦ connected.
HTTP request sent, awaiting responseā€¦ 404 Not Found
2021-12-24 13:40:02 ERROR 404: Not Found.

You should really take the time to understand what is going on.

It is explained in the topic linked by @Mirdarthos and the remedy is simple - the first section will help you solve the issue.

If you want even more background - you can find more than 20 linked topics dealing with the exact issue. Probably more if you search for the message

ok ive tried this again and the only change is it downloads all the updates 830mb and then throws the error.

Then you have other issues.

Did you edit the pacman.conf - implemented the suggested change?

Did you read further down and see the section suggesting to redo the removal of databases and changing mirror?

yea did it. working now. needed reboot. thanks guys and merry christmas

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