Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] GPGME error (Read 1842 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] GPGME error

This seems like old and solved issue, but remedies I could find online didn't produce relief.
This is basically what happens:

Code: [Select]
$ sudo pacman -Syu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 system                                                 265.4 KiB   885 KiB/s 00:00 [################################################] 100%
 world                                                    4.8 MiB  16.4 MiB/s 00:00 [################################################] 100%
 galaxy                                                 391.2 KiB  2.81 MiB/s 00:00 [################################################] 100%
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))

I tried out the following, based on forums, both ours and Arch ones and you can also see how it vent:

Code: [Select]
host:[user]:~$ sudo rm -rf /etc/pacman.d/gnupg /var/lib/pacman/sync
host:[user]:~$ sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/45C4D421063A5B18009712071A10E7ABB5F93BCD.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
host:[user]:~$ sudo pacman-key --populate artix
==> Appending keys from artix.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 5 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabled 1 keys.
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   5  signed:  14  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  14  signed:   3  trust: 14-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-02-26
host:[user]:~$ sudo pacman-key --refresh-keys
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key ED587B6247A4152D: "Marcus von Ditfurth (Artix Master-Key) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 7BFAD0C0864DA8E8: "Chris Cromer (Artix Master-Key) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key CF18A351C0705F6A: "Oscar Campos (Artix Master-Key) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 60448B45A4ECBA8D: "Muhammad Herdiansyah (Artix Master-Key) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key EA690BC73A4F1094: "Christos Nouskas (Artix Master Key) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 550B872C2BC73E57: "aldum <[email protected]>" 1 new signature
gpg: key 550B872C2BC73E57: "aldum <[email protected]>" 1 new subkey
gpg: Total number processed: 1
gpg:            new subkeys: 1
gpg:         new signatures: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   5  signed:  14  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  14  signed:   3  trust: 14-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-02-26
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 73580DE2EDDFA6D6: "artist <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 1247D995F165BBAC: "Artix Buildbot <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving '[email protected]' via WKD: No name
gpg: error reading key: No name
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key FA91071797BEEEC2: 4 signatures not checked due to missing keys
gpg: key FA91071797BEEEC2: "Chris Cromer <[email protected]>" 1 new user ID
gpg: key FA91071797BEEEC2: "Chris Cromer <[email protected]>" 3 new signatures
gpg: key FA91071797BEEEC2: "Chris Cromer <[email protected]>" 1 user ID cleaned
gpg: Total number processed: 1
gpg:           new user IDs: 1
gpg:         new signatures: 3
gpg:       user IDs cleaned: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   5  signed:  14  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  14  signed:   3  trust: 14-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-02-26
gpg: WARNING: unacceptable HTTP redirect from server was cleaned up
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 00077735933C3778: "Oscar Campos <[email protected]>" 1 new signature
gpg: key 00077735933C3778: "Oscar Campos <[email protected]>" 1 new subkey
gpg: Total number processed: 1
gpg:            new subkeys: 1
gpg:         new signatures: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   5  signed:  14  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  14  signed:   3  trust: 14-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-02-26
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 4003D2EF625D6492: "Dudemanguy <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key FD1ED4ECEF37E2D0: "Muhammad Herdiansyah <[email protected]>" 1 new signature
gpg: key FD1ED4ECEF37E2D0: "Muhammad Herdiansyah <[email protected]>" 1 signature cleaned
gpg: Total number processed: 1
gpg:         new signatures: 1
gpg:     signatures cleaned: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   5  signed:  15  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  15  signed:   3  trust: 15-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-02-26
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key CCD2779140DF9E58: "linuxer <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 4AE9A271C43CCAB1: "Adam Reisenauer (Myth) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key DC5A6F8092641E2D: "Nathan Owens <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 6023C3BEEAB08C4A: "Christos Nouskas (nous) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key C60E5D06320A178E: "Qontinuum <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key E10EE71073F35F57: "shyanjmc <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key AA7325972B740A9F: "Strahinya Radich <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1salec
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 27910437F88C3893: "[email protected]" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 573A673A53C01BC2: "udeved <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: error retrieving '[email protected]' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 8BB9E048A9CAC259: "physkets (Artix Linux) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
host:[user]:~$ sudo pacman -Syu
:: Synchronizing package databases...
 system                                                 265.4 KiB  1701 KiB/s 00:00 [################################################] 100%
 world                                                    4.8 MiB  24.6 MiB/s 00:00 [################################################] 100%
 galaxy                                                 391.2 KiB  8.13 MiB/s 00:00 [################################################] 100%
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))


Re: GPGME error

Reply #2
it might also be because of some kind of internet issue, are you behind some kind of firewall, company network?

maybe a mirror returning a 404, edit you mirror order!!

Re: GPGME error

Reply #3
Hi,

I had the same problem, the suggested solutions don't work because the signing keys in the repositories are not updated, possibly due to the migration of the repo structure.
To update the keys, I have temporarily modified
Code: [Select]
/etc/pacman.conf
as follows 

Code: [Select]
SigLevel = Never DatabaseNever 


This worked until the system returned to normal.



Re: GPGME error

Reply #5
Hi,

I had the same problem, the suggested solutions don't work because the signing keys in the repositories are not updated, possibly due to the migration of the repo structure.
To update the keys, I have temporarily modified
Code: [Select]
/etc/pacman.conf
as follows 

Code: [Select]
SigLevel = Never DatabaseNever 


This worked until the system returned to normal.



This is how my /etc/pacman.conf looks like now:

Code: [Select]
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
#ParallelDownloads = 5

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Artix Linux
# packagers with `pacman-key --populate artix`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The gremlins repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[system-gremlins]
#Include = /etc/pacman.d/mirrorlist

[system]
Include = /etc/pacman.d/mirrorlist

#[world-gremlins]
#Include = /etc/pacman.d/mirrorlist

[world]
Include = /etc/pacman.d/mirrorlist

#[galaxy-gremlins]
#Include = /etc/pacman.d/mirrorlist

[galaxy]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the lib32 repositories as required here.

#[lib32-gremlins]
#Include = /etc/pacman.d/mirrorlist

#[lib32]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
SigLevel = Never DatabaseNever

I still get same response from sudo pacman -Syu

 

Re: GPGME error

Reply #6
Yes, I had to remove, comment  on the property a little above in the file.

Code: [Select]
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

Re: GPGME error

Reply #7
Yes, I had to remove, comment  on the property a little above in the file.

Code: [Select]
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

I did that, and afterwards

Code: [Select]
sudo pacman-key --init
sudo pacman-key --populate artix
sudo pacman-key --refresh-keys
sudo pacman -Syu
and then as if the lid fell off and 365 updates poured out.

Thanks wolitoph, and also thanks everyone who helped with their experience.

Should I now turn /etc/pacman.conf back to how it was before?


Re: GPGME error

Reply #8
Should I now turn /etc/pacman.conf back to how it was before?

YES !

To share the information, here is the sequence of commands after the update (taken from the Artix and Arch wiki):

Code: [Select]
rm -r /etc/pacman.d/gnupg /var/lib/pacman/sync
pacman-key --init
pacman -Scc
pacman -Syyu # here PGPME error is ok I still have an issue with Artix Buildbot <[email protected]> key
pacman-key --refresh-keys
pacman-key --populate archlinux artix
pacman -Syu # Here Now everything is back to normal