You are not logged in.

#1 2023-08-21 08:39:39

FoxMaccloud
Member
Registered: 2023-07-10
Posts: 6

pacman -Syu error: failed to commit transaction (PGP signature)

I'm trying to update my system on my laptop. I haven't touched my laptop over the summer, so there is 2-3 months since last time I updated.
When I now try to update I'm getting this error: failed to commit transaction (invalid or corrupted package (PGP signature))

...
error: xorg-server-devel: signature from "Laurent Carlier <lordheavym@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/xorg-server-devel-21.1.8-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: xterm: signature from "T.J. Townsend <blakkheim@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/xterm-384-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: zenity: signature from "Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/zenity-3.44.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: zsh: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/zsh-5.9-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: zsh-history-substring-search: signature from "David Runge <dvzrv@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/zsh-history-substring-search-1.1.0-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: zsh-theme-powerlevel10k: signature from "Antonio Rojas <arojas@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/zsh-theme-powerlevel10k-1.19.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

The amount of error: signature from X is unknown trust stretches beyond the lines I have in my terminal.


I tried to google this issue myself and I found that many people solved this problem by running sudo pacman -Sy archlinux-keyring && sudo pacman -Su. However this for me gives me this problem;

sudo pacman -Sy archlinux-keyring && sudo pacman -Su
[sudo] password for foxmaccloud: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20230704-1

Total Download Size:   1.14 MiB
Total Installed Size:  1.62 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 archlinux-keyring-20230704-1-any                                                      1164.1 KiB  14.2 MiB/s 00:00 [#####################################################################] 100%
(1/1) checking keys in keyring                                                                                      [#####################################################################] 100%
(1/1) checking package integrity                                                                                    [#####################################################################] 100%
error: archlinux-keyring: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20230704-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

I also found that system time could perhaps be an issue, but for my that is correct.
Since none of the proposed solutions I have found doesn't work, I'm not really sure how to fix this problem.
How can I fix this problem so I can update my system?

Offline

#2 2023-08-21 09:16:59

loqs
Member
Registered: 2014-03-06
Posts: 17,765

Re: pacman -Syu error: failed to commit transaction (PGP signature)

What is the output of:

$ pacman-key --list-sigs '<eworm@archlinux.org>'
$ pacman-key --list-keys 'Arch Linux Master Key'

Offline

#3 2023-08-21 09:52:46

FoxMaccloud
Member
Registered: 2023-07-10
Posts: 6

Re: pacman -Syu error: failed to commit transaction (PGP signature)

loqs wrote:

What is the output of:

$ pacman-key --list-sigs '<eworm@archlinux.org>'
$ pacman-key --list-keys 'Arch Linux Master Key'
┌─[foxmaccloud edgyboi] - [~] - [Mon Aug 21, 11:51]
└─[λ]> pacman-key --list-sigs '<eworm@archlinux.org>'
gpg: Note: trustdb not writable
pub   rsa2048 2011-08-12 [SC]
      02FD1C7A934E614545849F19A6234074498E9CEE
sig    R     A6234074498E9CEE 2013-02-04  Christian Hesse <eworm@archlinux.org>
sig    R     A6234074498E9CEE 2013-01-14  Christian Hesse <eworm@archlinux.org>
uid           [  undef ] Christian Hesse <eworm@archlinux.org>
sig 3        A6234074498E9CEE 2022-12-01  Christian Hesse <eworm@archlinux.org>
sig          6BA0F5A2037F4F41 2022-11-29  Johannes Löthberg (Arch Linux Master Key) <demize@master-key.archlinux.org>
sig          B1B73B02CC52A02A 2022-07-10  Jonas Witschel (Arch Linux Master Key) <diabonas@master-key.archlinux.org>
sig          A88E23E377514E00 2022-02-06  Florian Pritz (Arch Linux Master Key) <florian@master-key.archlinux.org>
sig          D6D055F927843F1C 2022-01-12  Levente Polyak (Arch Linux Master Key) <anthraxx@master-key.archlinux.org>
sig          4DC95B6D7BE9892E 2021-10-28  David Runge (Arch Linux Master Key) <dvzrv@master-key.archlinux.org>
uid           [  undef ] Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>
sig 3    N   A6234074498E9CEE 2022-07-09  Christian Hesse <eworm@archlinux.org>
sig          D6D055F927843F1C 2018-12-10  Levente Polyak (Arch Linux Master Key) <anthraxx@master-key.archlinux.org>
sig          A88E23E377514E00 2015-12-23  Florian Pritz (Arch Linux Master Key) <florian@master-key.archlinux.org>
sub   rsa2048 2011-08-12 [E]
sig      N   A6234074498E9CEE 2022-07-09  Christian Hesse <eworm@archlinux.org>
sub   ed25519 2019-08-29 [S]
sig          A6234074498E9CEE 2019-08-29  Christian Hesse <eworm@archlinux.org>
sub   cv25519 2019-08-29 [E]
sig          A6234074498E9CEE 2019-08-29  Christian Hesse <eworm@archlinux.org>

┌─[foxmaccloud edgyboi] - [~] - [Mon Aug 21, 11:51]
└─[λ]> pacman-key --list-keys 'Arch Linux Master Key'
gpg: Note: trustdb not writable
pub   rsa3072 2011-11-18 [SC] [revoked: 2018-10-07]
      0E8B644079F599DFC1DDC3973348882F6AC6A4C2
uid           [ revoked] Pierre Schmitz (Arch Linux Master Key) <pierre@master-key.archlinux.org>

pub   rsa4096 2022-02-13 [SC] [revoked: 2022-02-13]
      159F3A43AEB246C5746C033814BC4F30B3B92EBA
uid           [ revoked] Giancarlo Razzolini (Arch Linux Master Key) <grazzolini@master-key.archlinux.org>

pub   rsa3072 2011-11-29 [SC] [revoked: 2011-11-29]
      27FFC4769E19F096D41D9265A04F9397CDFD6BB0
uid           [ revoked] Dan McGee (Arch Linux Master Key) <dan@master-key.archlinux.org>

pub   ed25519 2021-04-26 [SC]
      2AC0A42EFB0B5CBC7A0402ED4DC95B6D7BE9892E
uid           [  full  ] David Runge (Arch Linux Master Key) <dvzrv@master-key.archlinux.org>
sub   cv25519 2021-04-26 [E]

pub   rsa3072 2011-11-25 [SC] [revoked: 2011-11-25]
      44D4A033AC140143927397D47EFD567D4C7EA887
uid           [ revoked] Ionut Biru (Arch Linux Master Key) <ionut@master-key.archlinux.org>

pub   rsa3072 2011-11-19 [SC] [revoked: 2011-11-20]
      684148BB25B49E986A4944C55184252D824B18E8
uid           [ revoked] Thomas Bächler (Arch Linux Master Key) <thomas@master-key.archlinux.org>

pub   ed25519 2022-10-24 [SC]
      69E6471E3AE065297529832E6BA0F5A2037F4F41
uid           [  full  ] Johannes Löthberg (Arch Linux Master Key) <demize@master-key.archlinux.org>
sub   cv25519 2022-10-24 [E]

pub   rsa4096 2022-06-30 [SC]
      75BD80E4D834509F6E740257B1B73B02CC52A02A
uid           [  full  ] Jonas Witschel (Arch Linux Master Key) <diabonas@master-key.archlinux.org>
sub   rsa4096 2022-06-30 [E]

pub   rsa4096 2015-12-17 [SC]
      91FFE0700E80619CEB73235CA88E23E377514E00
uid           [  full  ] Florian Pritz (Arch Linux Master Key) <florian@master-key.archlinux.org>
sub   rsa4096 2015-12-17 [E]

pub   rsa4096 2011-11-29 [SC] [revoked: 2022-05-10]
      AB19265E5D7D20687D303246BA1DFB64FFF979E7
uid           [ revoked] Allan McRae (Arch Linux Master Key) <allan@master-key.archlinux.org>

pub   rsa4096 2018-11-08 [SC]
      D8AFDDA07A5B6EDFA7D8CCDAD6D055F927843F1C
uid           [  full  ] Levente Polyak (Arch Linux Master Key) <anthraxx@master-key.archlinux.org>
sub   rsa4096 2018-11-08 [E]
sub   rsa4096 2018-11-08 [A]

pub   rsa4096 2017-05-15 [SC] [revoked: 2017-05-15]
      DDB867B92AA789C165EEFA799B729B06A680C281
uid           [ revoked] Bartłomiej Piotrowski (Arch Linux Master Key) <bpiotrowski@master-key.archlinux.org>

Offline

#4 2023-08-21 10:21:38

loqs
Member
Registered: 2014-03-06
Posts: 17,765

Re: pacman -Syu error: failed to commit transaction (PGP signature)

Try fetching the key via WKD to pick up the missing signatures:

# gpg --homedir /etc/pacman.d/gnupg/ --auto-key-locate 'clear,nodefault,wkd' -v --locate-external-key 'eworm@archlinux.org'

Offline

#5 2023-08-21 10:35:34

FoxMaccloud
Member
Registered: 2023-07-10
Posts: 6

Re: pacman -Syu error: failed to commit transaction (PGP signature)

loqs wrote:

Try fetching the key via WKD to pick up the missing signatures:

# gpg --homedir /etc/pacman.d/gnupg/ --auto-key-locate 'clear,nodefault,wkd' -v --locate-external-key 'eworm@archlinux.org'
gpg --homedir /etc/pacman.d/gnupg/ --auto-key-locate 'clear,nodefault,wkd' -v --locate-external-key 'eworm@archlinux.org'
gpg: WARNING: unsafe ownership on homedir '/etc/pacman.d/gnupg'
gpg: enabled compatibility flags:
gpg: Note: trustdb not writable
gpg: using pgp trust model
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: waiting for the dirmngr to come up ... (4s)
gpg: waiting for the dirmngr to come up ... (3s)
gpg: waiting for the dirmngr to come up ... (2s)
gpg: waiting for the dirmngr to come up ... (1s)
gpg: connecting dirmngr at '/run/user/1000/gnupg/d.334bwnth1rdtw8g6yq3rxprb/S.dirmngr' failed: IPC connect call failed
gpg: error retrieving 'eworm@archlinux.org' via WKD: No dirmngr
gpg: error reading key: No dirmngr

Offline

#6 2023-08-21 12:03:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,808

Re: pacman -Syu error: failed to commit transaction (PGP signature)

Offline

#7 2023-08-29 11:25:15

FoxMaccloud
Member
Registered: 2023-07-10
Posts: 6

Re: pacman -Syu error: failed to commit transaction (PGP signature)

Thanks for the help! I did;

# mv /etc/pacman.d/gnupg /tmp/gnupg
# pacman-key --init
# pacman-key --populate
# pacman -Sy archlinux-keyring
# pacman -Syu

This fixed the issue big_smile

Offline

Board footer

Powered by FluxBB