You are not logged in.

#1 2023-10-08 20:59:29

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 80

[SOLVED] Problems with PGP signatures on update

I went to update my system with pacman -Syu but the update fails. I get messages that suggest it's the PGP signatures on several keys :

error: exfat-utils: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/exfat-utils-1.4.0-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: luajit: signature from "Daurnimator <daurnimator@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/luajit-2.1.1694285958-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: lua: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/lua-5.4.6-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: lua52: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/lua52-5.2.4-6-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: lua53: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/lua53-5.3.6-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-cairo: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-cairo-1.24.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-jaraco.functools: signature from "Chih-Hsuan Yen <yan12125@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-jaraco.functools-3.9.0-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-markdown: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-markdown-3.4.4-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 

The update then does not proceed. I tried changing my mirrorlist in case I was somehow downloading from a corrupted server, but no luck. I've also tried to repopulate my keys with the steps below, but no luck there, either :

# mv /etc/pacman.d/gnupg /etc/pacman.d/gnupg.Old

# pacman-key --init
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: agent_genkey failed: No such file or directory
gpg: key generation failed: No such file or directory
gpg: Done
==> Updating trust database...
gpg: no need for a trustdb check

# pacman-key --populate
==> ERROR: There is no secret key available to sign with.
==> Use 'pacman-key --init' to generate a default secret key.

Is there some advice, and/or  something I can read about this? PGP keys have always worked so seamlessly for me that I've never looked at them, or developed much of an understanding of them.

Last edited by nilesOien (2023-10-13 19:48:23)


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

#2 2023-10-08 23:08:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] Problems with PGP signatures on update

You have the right idea with resetting the keyring, but those errors are critical. Make sure to kill gpg-agent if it's running for the root user. Probably dirmngr as well, but that shouldn't cause this.

Offline

#3 2023-10-13 19:47:39

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 80

Re: [SOLVED] Problems with PGP signatures on update

This solved it, although I'm not sure why :

pacman -Sy archlinux-keyring

Marking as solved, although suggestions for reading about keys would be appreciated. I did notice that I had a lot of packages that were being moved to the "extra" area.


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

#4 2023-10-13 19:57:18

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

Re: [SOLVED] Problems with PGP signatures on update

You didn't update since at least february and either the wkd sync timer had no opportunity to act, is disabled … or you didn't update since a *really* long time wink

https://wiki.archlinux.org/title/Pacman-key
https://archlinux.org/news/git-migration-completed/

Online

#5 2023-10-13 21:07:01

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 80

Re: [SOLVED] Problems with PGP signatures on update

No. Machine is updated weekly.


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

Board footer

Powered by FluxBB