Error in keyring - Jonas Strassel signature (December 2023 edition)

I’m running into this problem every 6-10 months. And this time none of the other threads provide a solution for me.

I tried the solutions from this thread:

And I tried the solution from this thread: Again error in keyring signature from "Jonas Strassel <info@jonas-strassel.de>" is unknown trust - #4 by boredland

So my situation right looks like this:

> sudo pacman -Syu
error: manjaro-sway: signature from "Jonas Strassel <info@jonas-strassel.de>" is invalid

This is what I tried:

> sudo pacman-key --recv-keys A44C644D792767CED7941AFEABB2075D5F310CF8
gpg: key ABB2075D5F310CF8: "Jonas Strassel <info@jonas-strassel.de>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

> sudo pacman-key --lsign-key A44C644D792767CED7941AFEABB2075D5F310CF8
 -> Locally signed 1 keys.
==> Updating trust database...
gpg: next trustdb check due at 2027-06-07


> rm manjaro-keyring* archlinux-keyring*
> curl -O https://mirror.easyname.at/manjaro/pool/overlay/manjaro-keyring-20230719-2-any.pkg.tar.xz
> curl -O https://mirror.easyname.at/manjaro/pool/sync/archlinux-keyring-20231222-1-any.pkg.tar.zst
> sudo rm -r /etc/pacman.d/gnupg
> sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/2E553F3066D389C91487E6AE6E692ADB4FD5B9EF.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u

> sudo pacman -U manjaro-keyring-*-any.pkg.tar.xz archlinux-keyring-*-any.pkg.tar.zst
error: manjaro-sway: key "A44C644D792767CED7941AFEABB2075D5F310CF8" is unknown
:: Import PGP key A44C644D792767CED7941AFEABB2075D5F310CF8? [Y/n] Y
error: manjaro-sway: signature from "Jonas Strassel <info@jonas-strassel.de>" is invalid
error: database 'manjaro-sway' is not valid (invalid or corrupted database (PGP signature))
loading packages...
warning: manjaro-keyring-20230719-2 is up to date -- reinstalling
error: failed to prepare transaction (invalid or corrupted database)

> sudo pacman-key --populate manjaro archlinux
==> Appending keys from manjaro.gpg...
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 24 keys.
==> Importing owner trust values...
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabled 49 keys.
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  22  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  22  signed:  94  trust: 0-, 0q, 0n, 22m, 0f, 0u
gpg: depth: 2  valid:  72  signed:  26  trust: 72-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-01-21

Still running pacman -Syu gives me “error: manjaro-sway: signature from “Jonas Strassel info@jonas-strassel.de” is invalid”

Ho do I fix this?

Don’t go and delete gnupg afterwards.

I wonder if this more recent issue is closer to the mark:

Thank you, this one fixes the problem!

sudo rm -f /var/lib/pacman/sync/manjaro-sway.*.sig
sudo pacman-key --recv-keys A44C644D792767CED7941AFEABB2075D5F310CF8
sudo pacman-key --lsign-key A44C644D792767CED7941AFEABB2075D5F310CF8
sudo pacman -Syu
1 Like

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