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