Unable to update or install packages due to PGP signatures

I've been experiencing some issues with updating / installing packages.

This started upon me seeing ranger not process image previews correctly. I attempted to reinstall the program, but it told me the package was corrupted.

:: Retrieving packages...
 ranger-1.9.2.212.g5...   354.3 KiB   295K/s 00:01 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
error: ranger: signature from "Matti Hyttinen <matti@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/ranger-1.9.2.212.g5ae67755-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

I attempted to solve this issue on the forums, following commands given by @cscs and @torvic in a similar post.

This resulted in a different problems.

After sudo pacman-mirrors -f and sudo pacman -Syyu:

:: Synchronizing package databases...
 core                    1126.0   B   367K/s 00:00 [######################] 100%
 core.sig                1138.0   B  0.00B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update core (invalid or corrupted database (PGP signature))
 extra                   1132.0   B  0.00B/s 00:00 [######################] 100%
 extra.sig               1144.0   B  0.00B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update extra (invalid or corrupted database (PGP signature))
 community               1156.0   B  0.00B/s 00:00 [######################] 100%
 community.sig           1168.0   B  0.00B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update community (invalid or corrupted database (PGP signature))
 multilib                1150.0   B  0.00B/s 00:00 [######################] 100%
 multilib.sig            1162.0   B  0.00B/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

After sudo pacman-key --init and sudo pacman-key --populate:

error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core                    1126.0   B   367K/s 00:00 [######################] 100%
 core.sig                1138.0   B  0.00B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update core (invalid or corrupted database (PGP signature))
 extra                   1132.0   B  0.00B/s 00:00 [######################] 100%
 extra.sig               1144.0   B  0.00B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update extra (invalid or corrupted database (PGP signature))
 community               1156.0   B  0.00B/s 00:00 [######################] 100%
 community.sig           1168.0   B  0.00B/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update community (invalid or corrupted database (PGP signature))
 multilib                1150.0   B  0.00B/s 00:00 [######################] 100%
 multilib.sig            1162.0   B  0.00B/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

Your mirror is providing an empty package database. Update your mirror(s) and run a full update:

sudo pacman-mirrors -f3
sudo pacman -Syyu
1 Like

3 posts were merged into an existing topic: Unable to update - matti@manjaro.org is unknown trust

@jonathon

sudo pacman-mirrors f3 doesn't throw errors.

Summary
::INFO Downloading mirrors from repo.manjaro.org
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  1.957 New_Zealand    : https://manjaro.mirrors.theom.nz/
  1.404 New_Zealand    : http://manjaro.mirrors.theom.nz/
  1.858 France         : http://ftp.free.org/mirrors/repo.manjaro.org/repos/
  ..... France         : ftp://ftp.free.org/mirrors/repo.manjaro.org/repos/
  ..... South_Africa   : http://mirror.is.co.za/mirrors/manjaro.org/
::INFO Writing mirror list
::New_Zealand     : https://manjaro.mirrors.theom.nz/stable
::France          : http://ftp.free.org/mirrors/repo.manjaro.org/repos/stable
::South_Africa    : http://mirror.is.co.za/mirrors/manjaro.org/stable

sudo pacman -Syyu doesn't detect any updates - strange, because pamac was able to detect some earlier today, after I had regenerated my keys following the post I linked above.

Summary
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core                     151.3 KiB   175K/s 00:01 [######################] 100%
 extra                   1836.5 KiB   574K/s 00:03 [######################] 100%
 community                  5.2 MiB   550K/s 00:10 [######################] 100%
 multilib                 184.0 KiB   906K/s 00:00 [######################] 100%
:: Starting full system upgrade...
 there is nothing to do

@cscs
That was the first command I ran, following the post I linked above.

That's interesting. I don't have the update-notifier package installed on my system.

Your package database now has contents. This is good.

You're up-to-date. Good.

1 Like

And it looks like I can install packages now. Thank you for all your help :smile: