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 !
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 ?