Archlinux-keyring "invalid or corrupted"

Hello,

I have some trouble to update my system.
It ends up with a web search and a solution which works for everyone but for me:

~ sudo pacman -Sy archlinux-keyring
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: archlinux-keyring-20230130-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)             Old Version  New Version  Net Change

core/archlinux-keyring  20230130-1   20230130-1     0,00 MiB

Total Installed Size:  1,60 MiB
Net Upgrade Size:      0,00 MiB

:: Proceed with installation? [Y/n] y
(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-20230130-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
➜  ~

Any idea what I can do?

Thank you ind advance.
Best,
Doc

Welcome to the forum! :smile:

Can you do a normal update

sudo pacman -Syu

?

Thank you manuel,

No, I can’t.

~ sudo pacman -Syu
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (18)                           Old Version       New Version       Net Change  Download Size

endeavouros/eos-bash-shared            1.42-1            1.43-1              0,00 MiB       0,04 MiB
core/fakeroot                          1.30.1-1          1.31-1              0,00 MiB
extra/flatpak                          1:1.15.1-1        1:1.15.2-1          0,02 MiB
community/inxi                         3.3.24.1-4        3.3.25.1-1          0,00 MiB
endeavouros/kernel-install-for-dracut  1.7-3             1.7-4               0,00 MiB       0,02 MiB
core/less                              1:608-1           1:608-2             0,00 MiB
extra/libmspack                        1:0.10.1alpha-4   1:0.11alpha-1       0,00 MiB
core/libnl                             3.7.0-2           3.7.0-3             0,00 MiB
extra/openpmix                         4.2.2-1           4.2.3-1            -0,05 MiB
core/openssl                           3.0.7-4           3.0.8-1             0,03 MiB
core/openssl-1.1                       1.1.1.s-4         1.1.1.t-1           0,00 MiB
extra/python-setuptools                1:67.1.0-1        1:67.2.0-1          0,00 MiB
extra/python-trove-classifiers         2023.1.20-1       2023.2.8-1          0,00 MiB
extra/qt5-wayland                      5.15.8+kde+r57-1  5.15.8+kde+r58-1    0,00 MiB
extra/sdl2                             2.26.2-1          2.26.3-1            0,00 MiB
extra/thunderbird                      102.7.1-1         102.7.2-1           0,00 MiB
extra/xorg-server                      21.1.6-1          21.1.7-1           -0,01 MiB
extra/xorg-server-common               21.1.6-1          21.1.7-1            0,00 MiB

Total Download Size:     0,06 MiB
Total Installed Size:  255,34 MiB
Net Upgrade Size:        0,00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 eos-bash-shared-1.43-1-any                                                          46,0 KiB   374 KiB/s 00:00 [-------------------------------------------------------------------] 100%
 kernel-install-for-dracut-1.7-4-any                                                 17,9 KiB  95,6 KiB/s 00:00 [-------------------------------------------------------------------] 100%
 Total (2/2)                                                                         63,9 KiB   290 KiB/s 00:00 [-------------------------------------------------------------------] 100%
(18/18) checking keys in keyring                                                                                [-------------------------------------------------------------------] 100%
downloading required keys...
:: Import PGP key 003DB8B0CB23504F, "EndeavourOS <info@endeavouros.com>"? [Y/n] y
(18/18) checking package integrity                                                                              [-------------------------------------------------------------------] 100%
error: eos-bash-shared: signature from "EndeavourOS <info@endeavouros.com>" is unknown trust
:: File /var/cache/pacman/pkg/eos-bash-shared-1.43-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: kernel-install-for-dracut: signature from "EndeavourOS <info@endeavouros.com>" is unknown trust
:: File /var/cache/pacman/pkg/kernel-install-for-dracut-1.7-4-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

EDIT:

I found this:

https://forum.endeavouros.com/t/trouble-updating-invalid-pgp/17055/3

Which solved the problem. Could anybody explain why this happens?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.