PGP-Signature Error - can't update

I’ve been at this now for a while, trying the following things I found in the forum and the wiki:

[david@Alita2024 ~]$ rm manjaro-keyring* archlinux-keyring*
[david@Alita2024 ~]$ curl -O https://mirror.easyname.at/manjaro/pool/overlay/manjaro-keyring-20230719-3-any.pkg.tar.zst
[david@Alita2024 ~]$ curl -O https://mirror.easyname.at/manjaro/pool/sync/archlinux-keyring-20250430.1-1-any.pkg.tar.zst

(Did I maybe choose the wrong files?)

[david@Alita2024 ~]$ sudo rm -r /etc/pacman.d/gnupg
[david@Alita2024 ~]$ sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trust-db erzeugt
gpg: keine ultimativ vertrauenswürdigen Schlüssel gefunden
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Pacman Hauptschlüssel generieren. Kann eine Weile dauern.
gpg: Generating pacman keyring master key...
gpg: Verzeichnis `/etc/pacman.d/gnupg/openpgp-revocs.d' erzeugt
gpg: Widerrufzertifikat wurde als '/etc/pacman.d/gnupg/openpgp-revocs.d/87B2ADADFB36BBD63C770597188739C9CC1A2109.rev' gespeichert.
gpg: Done
==> Aktualisiere Trust-Datenbank...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: Tiefe: 0  gültig:   1  signiert:   0  Vertrauen: 0-, 0q, 0n, 0m, 0f, 1u
[david@Alita2024 ~]$ sudo pacman -U manjaro-keyring*.pkg.tar.zst archlinux-keyring*.pkg.tar.zst
Fehler: GPGME-Fehler: Keine Daten
Fehler: GPGME-Fehler: Keine Daten
Fehler: GPGME-Fehler: Keine Daten
Fehler: Datenbank »core« ist nicht gültig (Ungültige oder beschädigte Datenbank (PGP-Signatur))
Fehler: Datenbank »extra« ist nicht gültig (Ungültige oder beschädigte Datenbank (PGP-Signatur))
Fehler: Datenbank »multilib« ist nicht gültig (Ungültige oder beschädigte Datenbank (PGP-Signatur))
Pakete werden geladen …
Warnung: manjaro-keyring-20230719-3 ist aktuell -- Reinstalliere
Warnung: archlinux-keyring-20250430.1-1 ist aktuell -- Reinstalliere
Fehler: Vorgang konnte nicht vorbereitet werden (Ungültige oder beschädigte Datenbank)

Looked like id did not solve my problem and “sudo pacman -Syu” did provide the same outcome as before

After further research I tried the following (PGP signature inferno "Invalid or corrupted package (PGP signature)" - #10 by itgmo):

sudo rm -rf /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman-mirrors -c Global

this also did not solve the problem. A week ago I tried several other things I found on the forum, I did not write down and don’t quite remember.
The solution is probably somewhere in there…
Thanks for reading this!

Hi @FluffyDuck, and welcome!

I believe this will help:


:bangbang: Tip :bangbang:

When posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Sed
sollicitudin dolor
eget nisl elit id
condimentum
arcu erat varius
cursus sem quis eros.

Instead of like this:

Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby increasing legibility thus making it easier for those trying to provide assistance.

For more information, please see:


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Note that the above text is partially pre-prepared as a general introduction for new forum Users. Please take the time to to understand how it is done and encourage quality responses.

Edit:

Since your language seems to be German, you might find better assistance here:

https://www.manjaro-forum.de/

Thanks for the quick answer and the tips how to post.
Unfortunatly I got the same error messages again.

[david@Alita2024 ~]$ LC_ALL=C sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core                                           143.2 KiB   675 KiB/s 00:00 [###########################################] 100%
 extra                                            8.3 MiB  21.3 MiB/s 00:00 [###########################################] 100%
 multilib                                       147.9 KiB   729 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))
[david@Alita2024 ~]$ LC_ALL=C sudo rm -f $HOME/.cache/pkg/*.sig
[david@Alita2024 ~]$ LC_ALL=C sudo pacman -U $HOME/.cache/pkg/*.tar.zst
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: database 'core' is not valid (invalid or corrupted database (PGP signature))
error: database 'extra' is not valid (invalid or corrupted database (PGP signature))
error: database 'multilib' is not valid (invalid or corrupted database (PGP signature))
loading packages...
error: '/home/david/.cache/pkg/*.tar.zst': could not find or read package
[david@Alita2024 ~]$ LC_ALL=C sudo pacman -Sc
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] y
removing old packages from cache...

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] y
removing unused sync repositories...
[david@Alita2024 ~]$ LC_ALL=C sudo rm -Rf $HOME/.cache/pkg/
[david@Alita2024 ~]$ LC_ALL=C sudo pacman -Syu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)

after “sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/” provided already errors the following steps were probably futile.

Take a look here:

1 Like

Hey megavolt, that was the solution.
I’m so grateful to both of you and happy it worked! Thank you so much!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.