error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
core 170.6 KiB 79.4 KiB/s 00:02 [#####################################################################################################] 100%
extra 1901.8 KiB 1537 KiB/s 00:01 [#####################################################################################################] 100%
community 6.6 MiB 1532 KiB/s 00:04 [#####################################################################################################] 100%
multilib 177.4 KiB 493 KiB/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 to follow this… Pacman troubleshooting - Manjaro but I can’t figure out how to update my keys, if that’s even the problem.
pamac update
Preparing...
Synchronizing package databases...
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
invalid or corrupted database (PGP signature)
Failed to synchronize databases
Error: Failed to prepare transaction: invalid or corrupted database
If you check the file using the file utility - you should get a response like
➜ ~ file /var/lib/pacman/sync/core.db
/var/lib/pacman/sync/core.db: gzip compressed data, from Unix, original size modulo 2^32 542720
If instead of the above response you got
/var/lib/pacman/sync/core.db: HTML document, ASCII text
Then the mirror responded with a custom html - most likely a 404 - Not Found response and you will have to look into why you get that response.
The response can be caused by a nginx server - serving a custom 404 document - in which case the response code will be 200 - OK and pacman expects a database but got html document which in turn generates the GPGME error.