You are not logged in.

#1 2022-05-24 02:33:58

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 363

[SOLVED] pacman lots of corrupted packages

Hello everybody,

here is the output

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 zathura-pdf-mupdf-0.3.8-1-x86_64                                              21.8 MiB  5.37 MiB/s 00:04 [##############################################################] 100%
 intel-media-sdk-22.3.0-1-x86_64                                                3.6 MiB  5.75 MiB/s 00:01 [##############################################################] 100%
 python-pycryptodomex-3.12.0-1-x86_64                                        1354.7 KiB  5.29 MiB/s 00:00 [##############################################################] 100%
 vmaf-2.3.1-1-x86_64                                                          410.5 KiB  3.34 MiB/s 00:00 [##############################################################] 100%
 mujs-1.2.0-2-x86_64                                                          214.5 KiB  2.62 MiB/s 00:00 [##############################################################] 100%
 zathura-0.4.9-1-x86_64                                                       192.8 KiB  2.35 MiB/s 00:00 [##############################################################] 100%
 nnn-4.5-1-x86_64                                                             129.6 KiB  2.11 MiB/s 00:00 [##############################################################] 100%
 girara-0.3.7-1-x86_64                                                         72.2 KiB  1444 KiB/s 00:00 [##############################################################] 100%
 libmfx-22.3.0-1-x86_64                                                        56.6 KiB  1132 KiB/s 00:00 [##############################################################] 100%
 libinih-55-2-x86_64                                                           15.4 KiB   257 KiB/s 00:00 [##############################################################] 100%
 Total (10/10)                                                                 27.7 MiB  4.70 MiB/s 00:06 [##############################################################] 100%
(737/737) checking keys in keyring                                                                        [##############################################################] 100%
downloading required keys...
:: Import PGP key E85B8683EB48BC95, "Daniel Bermond <dbermond@archlinux.org>"? [Y/n] y
:: Import PGP key 0F65C7D881506130, "Maxime Gauduin <alucryd@archlinux.org>"? [Y/n] y
(737/737) checking package integrity                                                                      [##############################################################] 100%
error: libmfx: key "80247D99EABD3A4D1E3A1836E85B8683EB48BC95" is unknown
:: Import PGP key 80247D99EABD3A4D1E3A1836E85B8683EB48BC95? [Y/n] y
error: key "80247D99EABD3A4D1E3A1836E85B8683EB48BC95" could not be looked up remotely
:: File /var/cache/pacman/pkg/libmfx-22.3.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: vmaf: key "80247D99EABD3A4D1E3A1836E85B8683EB48BC95" is unknown
:: Import PGP key 80247D99EABD3A4D1E3A1836E85B8683EB48BC95? [Y/n] y
error: key "80247D99EABD3A4D1E3A1836E85B8683EB48BC95" could not be looked up remotely
:: File /var/cache/pacman/pkg/vmaf-2.3.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: libinih: key "95220BE99CE6FF778AE0DC670F65C7D881506130" is unknown
:: Import PGP key 95220BE99CE6FF778AE0DC670F65C7D881506130? [Y/n] y
error: key "95220BE99CE6FF778AE0DC670F65C7D881506130" could not be looked up remotely
:: File /var/cache/pacman/pkg/libinih-55-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: girara: signature from "Johannes Löthberg <johannes@kyriasis.com>" is unknown trust
:: File /var/cache/pacman/pkg/girara-0.3.7-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: intel-media-sdk: key "80247D99EABD3A4D1E3A1836E85B8683EB48BC95" is unknown
:: Import PGP key 80247D99EABD3A4D1E3A1836E85B8683EB48BC95? [Y/n] y
error: key "80247D99EABD3A4D1E3A1836E85B8683EB48BC95" could not be looked up remotely
:: File /var/cache/pacman/pkg/intel-media-sdk-22.3.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: mujs: key "80247D99EABD3A4D1E3A1836E85B8683EB48BC95" is unknown
:: Import PGP key 80247D99EABD3A4D1E3A1836E85B8683EB48BC95? [Y/n] y
error: key "80247D99EABD3A4D1E3A1836E85B8683EB48BC95" could not be looked up remotely
:: File /var/cache/pacman/pkg/mujs-1.2.0-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: nnn: signature from "Alexander Epaneshnikov <email@alex19ep.me>" is unknown trust
:: File /var/cache/pacman/pkg/nnn-4.5-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: python-pycryptodomex: signature from "Johannes Löthberg <johannes@kyriasis.com>" is unknown trust
:: File /var/cache/pacman/pkg/python-pycryptodomex-3.12.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: zathura: signature from "Johannes Löthberg <johannes@kyriasis.com>" is unknown trust
:: File /var/cache/pacman/pkg/zathura-0.4.9-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: zathura-pdf-mupdf: signature from "Johannes Löthberg <johannes@kyriasis.com>" is unknown trust
:: File /var/cache/pacman/pkg/zathura-pdf-mupdf-0.3.8-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Any suggestions are highly appreciated!
Thank you in advance!

Edit
Since last update was Dec'21 it looks like some keys were outdated.

pacman -Sy archlinux-keyring && pacman -Su

solves the issue.

Last edited by amaro (2022-05-24 02:56:28)

Offline

#2 2022-05-24 02:50:10

moet
Member
Registered: 2022-05-24
Posts: 4

Re: [SOLVED] pacman lots of corrupted packages

If this isn't an update, I would suggest updating your system.

sudo pacman -Syu

Maybe also try this post here:
https://bbs.archlinux.org/viewtopic.php?id=233480

Last edited by moet (2022-05-24 02:57:14)

Offline

#3 2022-05-24 03:00:03

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 363

Re: [SOLVED] pacman lots of corrupted packages

I run

pacman -Syu

a few times. Also updated the mirrors. It did not help.
The solution was

pacman -Sy archlinux-keyring && pacman -Su

Offline

#4 2022-05-25 18:50:13

dilatedjux
Member
Registered: 2022-05-25
Posts: 4

Re: [SOLVED] pacman lots of corrupted packages

I'm having the same issue, but doing

pacman -Sy archlinux-keyring && pacman -Su

returns

File /var/cache/pacman/pkg/archlinux-keyring-20220424-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature))

I can't seem to upgrade any packages on my system. Is there a work around for this?

Offline

#5 2022-05-25 20:22:33

seth
Member
Registered: 2012-09-03
Posts: 50,970

Re: [SOLVED] pacman lots of corrupted packages

Is that all or do you also get some "unknown trust" message?
The package could be indeed corrupted (delete and re-download it then)

Offline

#6 2022-05-25 23:46:28

dilatedjux
Member
Registered: 2022-05-25
Posts: 4

Re: [SOLVED] pacman lots of corrupted packages

Ah, so I figured from searching the forums that I locally sign the unsigned keys, which I did, and I was able to refresh keys and update arch's keyrings. But now I'm getting:

error: linux: signature from "Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/linux-5.17.9.arch1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).

when I run pacman -Syu, and I've already signed all the required keys sad

and I've ran pacman-key --list-keys heftig:

gpg: Note: trustdb not writable
pub   ed25519 2020-05-11 [SC]
      A2FF3A36AAA56654109064AB19802F8B0D70FC30
uid           [  full  ] Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
uid           [  full  ] Jan Alexander Steffens (heftig) <heftig@archlinux.org>
uid           [  full  ] Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
sub   ed25519 2020-05-11 [A]
sub   ed25519 2020-05-11 [S]
sub   cv25519 2020-05-11 [E]

pub   rsa2048 2011-08-25 [SC]
      8218F88849AAC522E94CF470A5E9288C4FA415FA
uid           [  full  ] Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
uid           [  full  ] [jpeg image of size 3837]
uid           [  full  ] [jpeg image of size 3865]
sub   ed25519 2019-05-08 [A]
sub   rsa4096 2019-05-08 [A]
sub   rsa2048 2011-08-25 [E]

to ensure that the keys are fully signed.

Last edited by dilatedjux (2022-05-25 23:48:51)

Offline

#7 2022-05-26 02:21:43

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

Re: [SOLVED] pacman lots of corrupted packages

Signature is invalid isn't a keyring problem. The package may very well be corrupt.

Offline

#8 2022-05-26 03:48:23

dilatedjux
Member
Registered: 2022-05-25
Posts: 4

Re: [SOLVED] pacman lots of corrupted packages

Man that's crazy. You gave me an idea... I changed to a different server, redownloaded the packages and upgraded. You are correct. I spent the last few hours deleting and re-populating my pgp signatures over and over again lol. I 100% thought it was the signatures.

Thanks a bunch!

Last edited by dilatedjux (2022-05-26 03:53:06)

Offline

Board footer

Powered by FluxBB