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.