You are not logged in.

#1 2023-05-07 16:14:20

paul9115
Member
Registered: 2023-05-07
Posts: 7

[Solved] pacman GPG error

Hello,
I seem to be having some issues with system updates using packman.
When running `pacman -Syyu` everything seems to work up until

(2/2) checking package integrity

At which point I get a lot of errors with regards to PGP errors

signature from "Felix Yan <felixonmars@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/scanmem-0.17-7-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 

I did some searching around and found some solutions which I tried but sadly none of them seemed to work I have attempted the following fixes:

pacman -Sc // finishes with no output 
pacman -Sy archlinux-keyring && pacman -Su // fails with the same GPG error
pacman-key --init && pacman-key --populate // fails with the following error: 
==> Appending keys from archlinux.gpg...
gpg: public key of ultimately trusted key F2519BB7EFA3D713 not found
==> Appending keys from blackarch.gpg...
==> Disabling revoked keys in keyring...
  -> Disabled 34 keys.
==> Updating trust database...
gpg: public key of ultimately trusted key F2519BB7EFA3D713 not found
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   2  signed:   9  trust: 0-, 0q, 0n, 0m, 0f, 2u
gpg: depth: 1  valid:   9  signed:  98  trust: 9-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2023-07-12
==> ERROR: Trust database could not be updated.

I've checked the news on the frontpage and don't see anything that looks like it may be causing this issue.

Last edited by paul9115 (2023-05-08 11:47:07)

Offline

#2 2023-05-07 17:38:48

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [Solved] pacman GPG error

Appending keys from blackarch.gpg...

Are you using blackarch or are you trying to use a blackarch repo?

Offline

#3 2023-05-07 19:56:18

paul9115
Member
Registered: 2023-05-07
Posts: 7

Re: [Solved] pacman GPG error

I'm using vanilla arch with the blackarch repo's installed, however I thought this might have been where the problem was coming from so I commented it out in pacman.conf

Offline

#4 2023-05-07 20:37:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: [Solved] pacman GPG error

But you still have the blackarch packages around, notably the keyring?

pacman-key -l F2519BB7EFA3D713
pacman-key -l "Pacman Keyring Master Key"

You might have to https://wiki.archlinux.org/title/Pacman … l_the_keys

Offline

#5 2023-05-08 11:45:31

paul9115
Member
Registered: 2023-05-07
Posts: 7

Re: [Solved] pacman GPG error

seth wrote:

But you still have the blackarch packages around, notably the keyring?

pacman-key -l F2519BB7EFA3D713
pacman-key -l "Pacman Keyring Master Key"

You might have to https://wiki.archlinux.org/title/Pacman … l_the_keys

Brilliant I moved /etc/pacman.d/gnupg and after running

 pacman-key --init && pacman-key --populate

I'm able to update my system again. Thanks for being so helpful and apologies if it was a stupid question, I'm still very much learning the nuances of pacman.

Offline

#6 2023-05-08 12:06:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: [Solved] pacman GPG error

Did you check what that key was (notably whether it was your master key)?

Offline

#7 2023-05-08 14:12:42

paul9115
Member
Registered: 2023-05-07
Posts: 7

Re: [Solved] pacman GPG error

seth wrote:

Did you check what that key was (notably whether it was your master key)?

It seems to have been the master key for the blackarch repo. [  full  ] Evan Teitelman (BlackArch Master) After rebuilding it I've been able to re-enable the repo and updates etc still work

Offline

Board footer

Powered by FluxBB