Error: failed to update multilib (invalid or corrupted database (PGP signature))

Here is the error I am getting when I try to update my system:

Blockquote [terrym@SiriusTao ~]$ sudo pacman-key --refresh-keys
gpg: refreshing 137 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: General error
==> ERROR: A specified local key could not be updated from a keyserver.
[terrym@SiriusTao ~]$ sudo pacman -Sc
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
Packages to keep:
All locally installed packages

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove all other packages from cache? [Y/n]
removing old packages from cache…

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n]
removing unused sync repositories…
[terrym@SiriusTao ~]$ sudo pacman -Syu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases…
core 675.0 B 165 KiB/s 00:00 [###################] 100%
core.sig 679.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 675.0 B 0.00 B/s 00:00 [###################] 100%
extra.sig 687.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 691.0 B 0.00 B/s 00:00 [###################] 100%
community.sig 695.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 687.0 B 0.00 B/s 00:00 [###################] 100%
multilib.sig 695.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

Hi!

Try this

sudo pacman -Sy archlinux-keyring manjaro-keyring
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --refresh-keys

If doesn’t work, try this

Delete package cache
pacman -Sc
Delete as root
/etc/pacman.d/gnupg
Regenerate it with
sudo pacman-key --init
sudo pacman-key --populate archlinux

OK, the first did not work and after trying the second, here is what I get:

Blockquote[terrym@SiriusTao ~]$ sudo pacman -Syyu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases…
core 675.0 B 0.00 B/s 00:00 [####################################################################] 100%
core.sig 679.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 675.0 B 0.00 B/s 00:00 [####################################################################] 100%
extra.sig 687.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 691.0 B 0.00 B/s 00:00 [####################################################################] 100%
community.sig 695.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 687.0 B 0.00 B/s 00:00 [####################################################################] 100%
multilib.sig 695.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

Also trying to install a file here is what I get:

Blockquote[terrym@SiriusTao ~]$ sudo pacman -F gimp
error: could not open file /var/lib/pacman/sync/core.files: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.files: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.files: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/multilib.files: Unrecognized archive format

Hi!
To install need to use -S not -F
Try to update with

sudo pacman-mirrors -f 3 && sudo pacman -Syyu

OK, so that worked for a bit until I got this error:

Blockquotedownloading required keys…
:: Import PGP key 428F7ECC7117F726, “Helmut Stult helmut@manjaro.org”? [Y/n]
error: key “428F7ECC7117F726” could not be looked up remotely
:: Import PGP key CAA6A59611C7F07E, “Philip Mueller philm@manjaro.org”? [Y/n]
error: key “CAA6A59611C7F07E” could not be looked up remotely
:: Import PGP key 150C200743ED46D8, “Mark Wagie mark@manjaro.org”? [Y/n]
error: key “150C200743ED46D8” could not be looked up remotely
:: Import PGP key 8DB9F8C18DF53602, “Stefano Capitani stefano@manjaro.org”? [Y/n]
error: key “8DB9F8C18DF53602” could not be looked up remotely
:: Import PGP key DAD3B211663CA268, “Bernhard Landauer oberon@manjaro.org”? [Y/n]
error: key “DAD3B211663CA268” could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Try sudo pacman -Sc && sudo pacman -Syyu

I still get a missing key error and it will not update any file. They all download, but none will install due to the missing key. I have not installed anything other than packages from the official repositiories.

I also tried this:

sudo pacman-key --refresh-keys
gpg: refreshing 120 keys from hkps://hkps.pool.sks-keyservers.net:443
gpg: keyserver refresh failed: General error
==> ERROR: A specified local key could not be updated from a keyserver.

After about the twentieth try, it works. I just followed this

Pacman_troubleshooting
after your immense help @visone!

Hi!
I’m just glad it work!!!

Adding keyserver hkp://pool.sks-keyservers.net to /etc/pacman.d/gnupg/gpg.conf did it for me.

I am having the same issue and already tried everything still i get:
sudo pacman -Syyu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases…
core 168.6 KiB 1074 KiB/s 00:00 [######################] 100%
extra 1923.8 KiB 8.66 MiB/s 00:00 [######################] 100%
community 6.6 MiB 14.2 MiB/s 00:00 [######################] 100%
multilib 177.4 KiB 4.33 MiB/s 00:00 [######################] 100%
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))

I already did all of the helps (from old archived manjaro posts) but I have no Idea what is going wrong here. There is already something confusing when I do sudo pacman-key --populate archlinux manjaro:

sudo pacman-key --populate archlinux manjaro
==> Appending keys from archlinux.gpg…
==> Appending keys from manjaro.gpg…
==> Locally signing trusted keys in keyring…
gpg: checking the trustdb
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 1EB2638FF56C0C53: no user ID for key signature packet of class 10
gpg: key 1EB2638FF56C0C53: no user ID for key signature packet of class 10

then update keys
sudo pacman-key --refresh-keys

gpg: key 3348882F6AC6A4C2: “Pierre Schmitz (Arch Linux Master Key) pierre@master-key.archlinux.org” not changed
gpg: Total number processed: 1
gpg: unchanged: 1
pub rsa3072 2011-11-18 [SC]
0E8B644079F599DFC1DDC3973348882F6AC6A4C2
uid [ full ] Pierre Schmitz (Arch Linux Master Key) pierre@master-key.archlinux.org
sub rsa1024 2011-11-18 [E]
sub rsa3072 2011-11-18 [A]

gpg: error retrieving ‘dan@master-key.archlinux.org’ via WKD: No data
gpg: error reading key: No data

and back to the old error…

Update:

I found that when i delete /var/lib/pacman/sync and just use sudo pacman -Syyu then everything is fine. As soon as I open the Updated Pacman GUI and start an update here it will fail. Could this come from some AUR Packages?

Edit:
When I run Pamac update I get the Error again:
pamac update
Preparing…
Synchronizing package databases…
Refreshing core.db…
Refreshing extra.db…
Refreshing community.db…
Refreshing multilib.db…
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
invalid or corrupted database (PGP signature)
Failed to synchronize databases

Deleting /var/lib/pacman/sync and running Pacman -Syyu fixed it but then I am not able to Update my AUR Packages anymore - is there anything known about that issue or is it temporary?

1 Like

Somehow it is working again after some restarts and deleting the Databases. I think the connection to the Key-Server was disrupted and now it’s back again…

worked for me. Thanks