[Solved] Archlinux Upgrade Warning: invalid or corrupted package (PGP signature)

Error example:

error: python-pytoml: signature from "Eli Schwartz <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-pytoml-0.1.20-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).

Check the status of the key with the following command:

$ sudo pacman-key --list-sigs Schwartz    
pub   rsa4096 2016-05-04 [SC] [expired: 2018-12-13]
      BD27B07A5EF45C2ADAF70E0484818A6819AF4A9B
uid           [ expired] Eli Schwartz <[email protected]>
sig          5184252D824B18E8 2018-03-11  Thomas Bächler (Arch Linux Master Key) <[email protected]>
sig          BA1DFB64FFF979E7 2018-01-08  Allan McRae (Arch Linux Master Key) <[email protected]>
sig          9B729B06A680C281 2017-12-25  Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
sig          A88E23E377514E00 2017-12-25  Florian Pritz (Arch Linux Master Key) <[email protected]>
sig 3        84818A6819AF4A9B 2017-07-19  Eli Schwartz <[email protected]>
uid           [ expired] Eli Schwartz <[email protected]>
sig          5184252D824B18E8 2018-03-11  Thomas Bächler (Arch Linux Master Key) <[email protected]>
sig          BA1DFB64FFF979E7 2018-01-08  Allan McRae (Arch Linux Master Key) <[email protected]>
sig          9B729B06A680C281 2017-12-25  Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
sig          A88E23E377514E00 2017-12-25  Florian Pritz (Arch Linux Master Key) <[email protected]>
sig 3        84818A6819AF4A9B 2016-12-13  Eli Schwartz <[email protected]>

The prompt here is expired, so you can refresh the time directly

$ sudo pacman-key --refresh-keys

However, if there is no problem, you need to check the key status of the master group

$ sudo pacman-key --list-sigs Master

Find the abnormal key, such as:

gpg: Note: trustdb not writable
pub   rsa2048 2016-12-07 [SC]
      D3F30F9C1EF74DDE6C546115FA7F75A4CCFCBCB7
uid           [ultimate] Pacman Keyring Master Key <pacman@localhost>
sig 3        FA7F75A4CCFCBCB7 2016-12-07  Pacman Keyring Master Key <pacman@localhost>

pub   rsa4096 2011-11-29 [SC]
      AB19265E5D7D20687D303246BA1DFB64FFF979E7
uid           [  full  ] Allan McRae (Arch Linux Master Key) <[email protected]>
sig          3EC72E5826BD94C2 2012-02-05  [User ID not found]
rev          3EC72E5826BD94C2 2012-02-05  [User ID not found]
sig          F99FFE0FEAE999BD 2011-11-30  Allan McRae <[email protected]>
sig          06096A6AD1CEDDAC 2011-11-30  Laurent Carlier <[email protected]>
sig          B773EB82DABACDA8 2013-08-16  [User ID not found]
sig          7ACFA647C5B3322D 2014-05-27  [User ID not found]
sig          C3918344475A229F 2015-09-23  [User ID not found]
sig          872E6714EAF5EC44 2014-04-09  [User ID not found]
sig          80394F9187983512 2016-11-14  [User ID not found]
sig          A9358D7DDD12F986 2012-02-29  [User ID not found]
sig          5F03C767C247A4D5 2017-08-17  [User ID not found]
sig 2   P    09B69B615AD10C8E 2015-12-01  [User ID not found]
sig 1   P    8508252F9B301536 2017-03-23  [User ID not found]
sig 3        BA1DFB64FFF979E7 2011-11-29  Allan McRae (Arch Linux Master Key) <[email protected]>
sig   L      FA7F75A4CCFCBCB7 2016-12-07  Pacman Keyring Master Key <pacman@localhost>

pub   rsa3072 2011-11-29 [SC] [revoked: 2011-11-29]
      27FFC4769E19F096D41D9265A04F9397CDFD6BB0
rev          A04F9397CDFD6BB0 2011-11-29  Dan McGee (Arch Linux Master Key) <[email protected]>
uid           [ revoked] Dan McGee (Arch Linux Master Key) <[email protected]>
sig 3        A04F9397CDFD6BB0 2011-11-29  Dan McGee (Arch Linux Master Key) <[email protected]>
sig   L      FA7F75A4CCFCBCB7 2016-12-07  Pacman Keyring Master Key <pacman@localhost>
sig          5C2E46A0F53A76ED 2011-11-29  Dan McGee <[email protected]>
sig          06096A6AD1CEDDAC 2011-11-30  Laurent Carlier <[email protected]>
sig          7ACFA647C5B3322D 2014-05-27  [User ID not found]
sig          872E6714EAF5EC44 2014-04-09  [User ID not found]
sig          80394F9187983512 2016-11-14  [User ID not found]
sig          A9358D7DDD12F986 2012-02-29  [User ID not found]
sig 2   P    09B69B615AD10C8E 2015-12-01  [User ID not found]

pub   rsa4096 2015-12-17 [SC]
      91FFE0700E80619CEB73235CA88E23E377514E00
uid           [  undef ] Florian Pritz (Arch Linux Master Key) <[email protected]>
sig 3        A88E23E377514E00 2015-12-17  Florian Pritz (Arch Linux Master Key) <[email protected]>
sig 1   P  2 AA14E96200F5E006 2017-09-14  [User ID not found]
sig          80394F9187983512 2016-11-14  [User ID not found]
sig          6D1655C14CE1C13E 2015-12-17  Florian Pritz <[email protected]>
sig        2 5F03C767C247A4D5 2017-08-17  [User ID not found]
sig 1   P    8508252F9B301536 2017-03-23  [User ID not found]
sub   rsa4096 2015-12-17 [E]
sig   L      FA7F75A4CCFCBCB7 2016-12-07  Pacman Keyring Master Key <pacman@localhost>
sig          A88E23E377514E00 2015-12-17  Florian Pritz (Arch Linux Master Key) <[email protected]>
sub   rsa4096 2015-12-17 [E]
sig          A88E23E377514E00 2015-12-17  Florian Pritz (Arch Linux Master Key) <[email protected]>

pub   rsa3072 2011-11-25 [SC] [revoked: 2011-11-25]
      44D4A033AC140143927397D47EFD567D4C7EA887
rev          7EFD567D4C7EA887 2011-11-25  Ionut Biru (Arch Linux Master Key) <[email protected]>
uid           [ revoked] Ionut Biru (Arch Linux Master Key) <[email protected]>
sig 3        7EFD567D4C7EA887 2011-11-25  Ionut Biru (Arch Linux Master Key) <[email protected]>
sig   L      FA7F75A4CCFCBCB7 2016-12-07  Pacman Keyring Master Key <pacman@localhost>
sig 1   P  2 AA14E96200F5E006 2017-09-14  [User ID not found]
sig          E8F18BA1615137BC 2011-11-25  Ionut Biru <[email protected]>
sig          872E6714EAF5EC44 2014-04-09  [User ID not found]
sig          80394F9187983512 2016-11-14  [User ID not found]
sig          A9358D7DDD12F986 2012-02-29  [User ID not found]
sig        2 5F03C767C247A4D5 2017-08-17  [User ID not found]
sig 1   P    8508252F9B301536 2017-03-23  [User ID not found]

pub   rsa3072 2011-11-18 [SC]
      0E8B644079F599DFC1DDC3973348882F6AC6A4C2
uid           [  full  ] Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sig 3        3348882F6AC6A4C2 2011-11-18  Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sig   L      FA7F75A4CCFCBCB7 2016-12-07  Pacman Keyring Master Key <pacman@localhost>
sig 1   P  2 AA14E96200F5E006 2017-09-14  [User ID not found]
sig          7F2D434B9741E8AC 2011-11-18  Pierre Schmitz <[email protected]>
sig          7ACFA647C5B3322D 2014-05-27  [User ID not found]
sig          872E6714EAF5EC44 2014-04-09  [User ID not found]
sig          80394F9187983512 2016-11-14  [User ID not found]
sig          A9358D7DDD12F986 2012-02-29  [User ID not found]
sig 3        AD94BA169DBB5BF2 2016-10-12  [User ID not found]
sig        2 5F03C767C247A4D5 2017-08-17  [User ID not found]
sig 1   P    8508252F9B301536 2017-03-23  [User ID not found]
sub   rsa1024 2011-11-18 [E]
sig          3348882F6AC6A4C2 2011-11-18  Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sub   rsa3072 2011-11-18 [A]
sig          3348882F6AC6A4C2 2011-11-18  Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sub   rsa1024 2011-11-18 [E]
sig          3348882F6AC6A4C2 2011-11-18  Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sub   rsa3072 2011-11-18 [A]
sig          3348882F6AC6A4C2 2011-11-18  Pierre Schmitz (Arch Linux Master Key) <[email protected]>

pub   rsa3072 2011-11-19 [SC]
      684148BB25B49E986A4944C55184252D824B18E8
uid           [  full  ] Thomas Bächler (Arch Linux Master Key) <[email protected]>
sig 3        5184252D824B18E8 2011-11-19  Thomas Bächler (Arch Linux Master Key) <[email protected]>
sig   L      FA7F75A4CCFCBCB7 2016-12-07  Pacman Keyring Master Key <pacman@localhost>
sig 1   P  2 AA14E96200F5E006 2017-09-14  [User ID not found]
sig          7ACFA647C5B3322D 2014-05-27  [User ID not found]
sig          284FC34C8E4B1A25 2011-11-19  Thomas Bächler <[email protected]>
sig          872E6714EAF5EC44 2014-04-09  [User ID not found]
sig          80394F9187983512 2016-11-14  [User ID not found]
sig          A9358D7DDD12F986 2012-02-29  [User ID not found]
sig 1   P    8508252F9B301536 2017-03-23  [User ID not found]

pub   rsa4096 2017-05-15 [SC]
      DDB867B92AA789C165EEFA799B729B06A680C281
uid           [  full  ] Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
sig 3        9B729B06A680C281 2017-05-15  Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
sig 1   P  2 AA14E96200F5E006 2017-09-14  [User ID not found]
sig          B6002D906D137D09 2017-09-03  [User ID not found]
sig          BBE43771487328A9 2017-05-15  Bartlomiej Piotrowski <[email protected]>
sig        2 5F03C767C247A4D5 2017-08-17  [User ID not found]
sig   L      FA7F75A4CCFCBCB7 2017-10-24  Pacman Keyring Master Key <pacman@localhost>
sub   rsa4096 2017-05-15 [E]
sig          9B729B06A680C281 2017-05-15  Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>

Here, Florian Pritz prompts undefined, so delete it with the corresponding ID and import it again

pacman-key --delete 91FFE0700E80619CEB73235CA88E23E377514E00
pacman-key --populate archlinux

 

Similar Posts: