Regular GPGME errors blocking app installs / updates

Hi, for some time now I very frequently have a GPGME error when tryning to update or install an app :

    ~  sudo pacman -Syu                                                                               ✔ 
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
:: Synchronisation des bases de données de paquets…
 core                                  139,1 KiB   292 KiB/s 00:00 [####################################] 100%
 extra                                   8,1 MiB  3,84 MiB/s 00:02 [####################################] 100%
 multilib                              143,0 KiB   298 KiB/s 00:00 [####################################] 100%
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
erreur : la synchronisation de toutes les bases de données a échoué (base de données non valide ou corrompue (signature PGP))

For those who don’t speak French, it translates to :

error : error GPGME : no data
error : the synchronisation of all databases failed (invalid or corrupted database (PGP signature))

I tried sudo pacman-mirrors -f 5 sudo pacman -Syyu which didn’t solve anything and sudo rm -R /var/lib/pacman/sync ; sudo -E pacman -Syu which does solve the problem but only for a few days.
Every once in a while, I’ll have this error again, and I don’t know why, nor how to fix it for good.
I don’t have the AUR enabled, and I don’t tinker much whith my system as I mostly use flatpaks.
Has anyone had the same issue and fixed it permanently ?
Thanks in advance !

No surprise there; the syntax is incorrect. Try this instead;

to sort mirrors by fastest (globally), and update:

sudo pacman-mirrors --fasttrack && sudo pacman -Syu

…or…

to sort mirrors limited to your general location, and update:

sudo pacman-mirrors --continent && sudo pacman -Syu

I corrected the command, it still doesn’t work though.

    ~  sudo pacman-mirrors --fasttrack && sudo pacman -Syu                                   1 ✘  7s  
::INFO Téléchargement des miroirs depuis Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Utilisation de la liste des miroirs par défaut
::INFO Interrogation des miroirs - Cela peut prendre un certain temps
  0.734 United_States  : https://coresite.mm.fcix.net/manjaro/
  ..... Bulgaria       : https://manjaro.ipacct.com/manjaro/

::ERREUR Connection: HTTPSConnectionPool(host='manjaro.ipacct.com', port=443): Max retries exceeded with url: /manjaro/unstable/core/x86_64/core.db.tar.gz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x751e37fd1010>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

  2.056 South_Korea    : https://mirror.funami.tech/manjaro/
  ..... Australia      : https://gsl-syd.mm.fcix.net/manjaro/
  0.599 United_States  : https://uvermont.mm.fcix.net/manjaro/
  ..... China          : https://mirrors.sjtug.sjtu.edu.cn/manjaro/
  0.708 United_Kingdom : https://ask4.mm.fcix.net/manjaro/
  2.191 Russia         : https://mirror.truenetwork.ru/manjaro/
  0.515 Sweden         : https://ftp.lysator.liu.se/pub/manjaro/
  2.009 United_States  : https://mirrors.ocf.berkeley.edu/manjaro/
  0.666 United_States  : https://forksystems.mm.fcix.net/manjaro/
  0.709 United_States  : https://ohioix.mm.fcix.net/manjaro/
  0.337 Germany        : https://ftp.gwdg.de/pub/linux/manjaro/
  ..... New_Zealand    : https://mirror.2degrees.nz/manjaro/

::ERREUR Connection: HTTPSConnectionPool(host='mirror.2degrees.nz', port=443): Max retries exceeded with url: /manjaro/unstable/core/x86_64/core.db.tar.gz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x751e37fd1370>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

  0.806 Global         : https://mirrors.manjaro.org/repo/
  ..... Germany        : http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/

::ERREUR Connection: HTTPConnectionPool(host='ftp.rz.tu-bs.de', port=80): Read timed out.

  0.302 Spain          : https://mirror.raiolanetworks.com/manjaro/
  0.166 Germany        : https://manjaro.kurdy.org/
  1.197 United_States  : https://repo.ialab.dsu.edu/manjaro/
  1.304 United_States  : https://irltoolkit.mm.fcix.net/manjaro/
  2.539 Brazil         : https://manjaro.c3sl.ufpr.br/
  0.806 United_States  : https://nnenix.mm.fcix.net/manjaro/
  2.068 Global         : https://mirrors.cicku.me/manjaro/
  1.199 Austria        : https://mirror.easyname.at/manjaro/
  2.029 Sweden         : https://ftpmirror1.infania.net/mirror/manjaro/
  ..... South_Africa   : http://manjaro.mirror.ac.za/
  2.820 Japan          : https://mirror.phoepsilonix.love/manjaro/
  1.352 United_States  : https://codingflyboy.mm.fcix.net/manjaro/
  ..... Singapore      : http://ossmirror.mycloud.services/os/linux/manjaro/
  1.352 United_States  : https://ziply.mm.fcix.net/manjaro/
  1.532 United_States  : https://opencolo.mm.fcix.net/manjaro/
  ..... United_States  : https://mirrors.gigenet.com/manjaro/

::ERREUR Connection: HTTPSConnectionPool(host='mirrors.gigenet.com', port=443): Max retries exceeded with url: /manjaro/unstable/core/x86_64/core.db.tar.gz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x751e37fd2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

  1.512 Switzerland    : https://ipng.mm.fcix.net/manjaro/
  0.304 Belgium        : http://ftp.belnet.be/mirrors/manjaro/repos/
  0.368 Global         : https://mirrors2.manjaro.org/
  0.343 Germany        : https://mirror.alpix.eu/manjaro/
  0.277 France         : https://manjaro.ynh.ovh/
  1.145 Switzerland    : https://mirror.init7.net/manjaro/
  0.567 Netherlands    : https://manjaro.mirrors.lavatech.top/
  0.958 United_States  : https://southfront.mm.fcix.net/manjaro/
  1.952 Singapore      : https://mirror.freedif.org/Manjaro/
  2.783 Chile          : https://mirror.ufro.cl/manjaro/
  0.872 United_States  : https://volico.mm.fcix.net/manjaro/
  ..... Japan          : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/
  0.310 United_Kingdom : http://manjaro.mirrors.uk2.net/
  0.516 Ukraine        : https://mirror.hostiko.network/manjaro/
  0.725 United_States  : https://mirror.math.princeton.edu/pub/manjaro/
  1.922 Canada         : https://muug.ca/mirror/manjaro/
  3.158 Brazil         : https://mirror.ufam.edu.br/manjaro/
  1.227 United_States  : https://ridgewireless.mm.fcix.net/manjaro/
  1.818 Colombia       : https://edgeuno-bog2.mm.fcix.net/manjaro/
  ..... United_States  : https://nocix.mm.fcix.net/manjaro/
  0.758 United_States  : https://mnvoip.mm.fcix.net/manjaro/
  2.277 Taiwan         : https://mirror.archlinux.tw/Manjaro/
  0.662 United_States  : https://cofractal-ewr.mm.fcix.net/manjaro/
  1.133 United_States  : http://mirror.fcix.net/manjaro/
::INFO Écriture de la liste des miroirs
::Germany         : https://manjaro.kurdy.org/unstable
::France          : https://manjaro.ynh.ovh/unstable
::Spain           : https://mirror.raiolanetworks.com/manjaro/unstable
::Belgium         : http://ftp.belnet.be/mirrors/manjaro/repos/unstable
::United_Kingdom  : http://manjaro.mirrors.uk2.net/unstable
::Germany         : https://ftp.gwdg.de/pub/linux/manjaro/unstable
::Germany         : https://mirror.alpix.eu/manjaro/unstable
::Global          : https://mirrors2.manjaro.org/unstable
::Sweden          : https://ftp.lysator.liu.se/pub/manjaro/unstable
::Ukraine         : https://mirror.hostiko.network/manjaro/unstable
::Netherlands     : https://manjaro.mirrors.lavatech.top/unstable
::United_States   : https://uvermont.mm.fcix.net/manjaro/unstable
::United_States   : https://cofractal-ewr.mm.fcix.net/manjaro/unstable
::United_States   : https://forksystems.mm.fcix.net/manjaro/unstable
::United_Kingdom  : https://ask4.mm.fcix.net/manjaro/unstable
::United_States   : https://ohioix.mm.fcix.net/manjaro/unstable
::United_States   : https://mirror.math.princeton.edu/pub/manjaro/unstable
::United_States   : https://coresite.mm.fcix.net/manjaro/unstable
::United_States   : https://mnvoip.mm.fcix.net/manjaro/unstable
::Global          : https://mirrors.manjaro.org/repo/unstable
::United_States   : https://nnenix.mm.fcix.net/manjaro/unstable
::United_States   : https://volico.mm.fcix.net/manjaro/unstable
::United_States   : https://southfront.mm.fcix.net/manjaro/unstable
::United_States   : http://mirror.fcix.net/manjaro/unstable
::Switzerland     : https://mirror.init7.net/manjaro/unstable
::United_States   : https://repo.ialab.dsu.edu/manjaro/unstable
::Austria         : https://mirror.easyname.at/manjaro/unstable
::United_States   : https://ridgewireless.mm.fcix.net/manjaro/unstable
::United_States   : https://irltoolkit.mm.fcix.net/manjaro/unstable
::United_States   : https://codingflyboy.mm.fcix.net/manjaro/unstable
::United_States   : https://ziply.mm.fcix.net/manjaro/unstable
::Switzerland     : https://ipng.mm.fcix.net/manjaro/unstable
::United_States   : https://opencolo.mm.fcix.net/manjaro/unstable
::Colombia        : https://edgeuno-bog2.mm.fcix.net/manjaro/unstable
::Canada          : https://muug.ca/mirror/manjaro/unstable
::Singapore       : https://mirror.freedif.org/Manjaro/unstable
::United_States   : https://mirrors.ocf.berkeley.edu/manjaro/unstable
::Sweden          : https://ftpmirror1.infania.net/mirror/manjaro/unstable
::South_Korea     : https://mirror.funami.tech/manjaro/unstable
::Global          : https://mirrors.cicku.me/manjaro/unstable
::Russia          : https://mirror.truenetwork.ru/manjaro/unstable
::Taiwan          : https://mirror.archlinux.tw/Manjaro/unstable
::Brazil          : https://manjaro.c3sl.ufpr.br/unstable
::South_Africa    : http://manjaro.mirror.ac.za/unstable
::Chile           : https://mirror.ufro.cl/manjaro/unstable
::Japan           : https://mirror.phoepsilonix.love/manjaro/unstable
::Brazil          : https://mirror.ufam.edu.br/manjaro/unstable
::Singapore       : http://ossmirror.mycloud.services/os/linux/manjaro/unstable
::Japan           : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/unstable
::Australia       : https://gsl-syd.mm.fcix.net/manjaro/unstable
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/unstable
::United_States   : https://nocix.mm.fcix.net/manjaro/unstable
::INFO Liste de miroirs générée et sauvegardée dans: /etc/pacman.d/mirrorlist
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
:: Synchronisation des bases de données de paquets…
 core                                  139,1 KiB   304 KiB/s 00:00 [####################################] 100%
 extra                                   8,1 MiB  2,12 MiB/s 00:04 [####################################] 100%
 multilib                              143,0 KiB   379 KiB/s 00:00 [####################################] 100%
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
erreur : la synchronisation de toutes les bases de données a échoué (base de données non valide ou corrompue (signature PGP))

Perhaps not, but the commands definitely won’t do much if they’re incorrect in the first place. :slight_smile:

Quick tip:

Please prefix each command with LC_ALL=C; like this:

LC_ALL=C sudo pacman -Syu

The resulting output will be in English, and as the majority of Users in this forum might only speak English, it will be more understandable.


The actual errors may need closer scrutiny.
I’ll defer to other Members to offer advice.

Regards.

1 Like

Right thanks for the tip ! Here’s the outcomes in English.

    ~  LC_ALL=C sudo pacman-mirrors --continent && sudo pacman -Syu                               ✔   
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  0.236 Austria        : https://mirror.easyname.at/manjaro/
  0.210 Germany        : https://mirror.alpix.eu/manjaro/
  0.350 Ukraine        : https://mirror.hostiko.network/manjaro/
::INFO Writing mirror list
::Germany         : https://mirror.alpix.eu/manjaro/unstable
::Austria         : https://mirror.easyname.at/manjaro/unstable
::Ukraine         : https://mirror.hostiko.network/manjaro/unstable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
erreur : erreur GPGME : Pas de données
:: Synchronisation des bases de données de paquets…
erreur : la synchronisation de toutes les bases de données a échoué (verrouillage de la base de données impossible)
    ~  LC_ALL=C sudo pacman -Syu                                                                1 ✘   
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)

Well part of the output is still in French which is weird as another part is in English. Still the same GPGME error : no data though.

Hi,
I just got the same error with pamac, then pacman. I also tried the standard commands in such case without result.
After searching on the web, I found a thread in Arch with the solution (for my PC) :
sudo rm -R /var/lib/pacman/sync
then
sudo -E pacman -Syu
and no problem !
Give it a try !

Hi, thanks for your answer !
I’ve already tried this and it does work, but then out of nowhere my issue comes back (every week or so).
I really don’t understand why, because all the threads I read are closed and “fixed”, and no-one complained about the problem coming back…

Is there anything as a “reset” of pamac ? One that would completely nuke everything I might have done or modified and go back to “factory” configuration ?

first I found this:

"error: GPGME error: No data" when I'm trying to update - #6 by lectrode

then this HowTo, which is exactly the same, with explanation:

[root tip] [How To] Mitigate and prevent GPGME error when syncing your system

HTH

2 Likes

Thanks a lot, it seems to work again, hope the fix will last !

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