You are not logged in.

#1 2022-12-20 15:13:19

lyhokia
Member
Registered: 2021-01-07
Posts: 20

How to fix corrupted package (PGP signature) error?

Here's how I tried to install keyring and failed:

$ rm /var/cache/pacman/pkg/archlinux-keyring-20221219-1-any.pkg.tar.zst
rm: cannot remove '/var/cache/pacman/pkg/archlinux-keyring-20221219-1-any.pkg.tar.zst': No such file or directory
$ sudo pacman -Sy archlinux-keyring && pacman -Su
:: 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-20221219-1

Total Download Size:   1.12 MiB
Total Installed Size:  1.59 MiB
Net Upgrade Size:      0.02 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
archlinux-keyring-20221219-1-any               1149.7 KiB  1145 KiB/s 00:01 [###########################################] 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-20221219-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.

Offline

#2 2022-12-20 15:16:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,198

Re: How to fix corrupted package (PGP signature) error?

See this thread, currently 2 below  your own. https://bbs.archlinux.org/viewtopic.php?id=282170

Unless this system really is a couple of years out of date?

Last edited by Scimmia (2022-12-20 15:17:24)

Online

#3 2022-12-20 15:30:47

lyhokia
Member
Registered: 2021-01-07
Posts: 20

Re: How to fix corrupted package (PGP signature) error?

I've tried the following:
1. install keyring and ca-certificates, failed
2. delete all cache and pacman -Syu, failed
3. sudo pacman-key --refresh-keys and install packages, failed

The system is not old at all. I think I have updated it at least in the last month.

Offline

#4 2022-12-20 15:33:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,198

Re: How to fix corrupted package (PGP signature) error?

None of which make any sense at all, given the error. Did you read the linked thread?

Online

#5 2022-12-20 15:54:16

lyhokia
Member
Registered: 2021-01-07
Posts: 20

Re: How to fix corrupted package (PGP signature) error?

What am I supposed to do then... I thought that was the instructions that I'm supposed to run as in the thread

Offline

#6 2022-12-20 16:10:46

seth
Member
Registered: 2012-09-03
Posts: 60,000

Offline

Board footer

Powered by FluxBB