Help with keyring issue

I cannot update as pacman claims the keyring files are corrupted. I have exhausted my search abilities trying to find a solution.

The instructions on this forum (https://discovery.endeavouros.com/signature-and-keyring/pacman-keyring-issues/2021/03/) lead me to the final step which gives this error:

error: '/var/cache/pacman/pkg/archlinux-keyring*.pkg.tar.zst': could not find or read package

pacman-keyring --populate gives the error: no openpgp data found.

Any ideas what to try next?

Are you saying that running this alone didn’t work?

sudo pacman -Sy archlinux-keyring endeavouros-keyring
sudo pacman -Syu

Can you post what you ran and the outputs?

Here is the output of the first one and, it is the same for the others. ty.

warning: archlinux-keyring-20240429-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

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

core/archlinux-keyring  20240429-1   20240429-1     1.66 MiB       1.16 MiB

Total Download Size:   1.16 MiB
Total Installed Size:  1.66 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 archlinux-keyring-20240429-1-any     1191.6 KiB  2.26 MiB/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-20240429-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.

It fails both yes and no.

Ok can you do the same for this section

sudo mv /etc/pacman.d/gnupg /root/pacman-key.bak
sudo pacman-key --init
sudo pacman-key --populate archlinux endeavouros
sudo pacman -Syy archlinux-keyring endeavouros-keyring
sudo pacman -Syyu
[arielc@ariel-precision5520 ~]$ sudo mv /etc/pacman.d/gnupg /root/pacman.key.bak
[sudo] password for arielc: 
[arielc@ariel-precision5520 ~]$ sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/971A2C4FCBECF24CEE07012944FCA70E4BE12011.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
[arielc@ariel-precision5520 ~]$ sudo pacman-key --populate archlinux endeavouros
==> Appending keys from archlinux.gpg...
gpg: no valid OpenPGP data found.
==> Appending keys from endeavouros.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 7 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20
[arielc@ariel-precision5520 ~]$ sudo pacman -Syy archlinux-keyring endeavouros-keyring
:: Synchronizing package databases...
 endeavouros                            17.2 KiB  32.6 KiB/s 00:01 [------------------------------------] 100%
 core                                  123.8 KiB   175 KiB/s 00:01 [------------------------------------] 100%
 extra                                   7.7 MiB  2.22 MiB/s 00:03 [------------------------------------] 100%
 multilib                              138.4 KiB   204 KiB/s 00:01 [------------------------------------] 100%
warning: archlinux-keyring-20240429-1 is up to date -- reinstalling
warning: endeavouros-keyring-20231222-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

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

core/archlinux-keyring           20240429-1   20240429-1     1.66 MiB       1.16 MiB
endeavouros/endeavouros-keyring  20231222-1   20231222-1     0.00 MiB               

Total Download Size:   1.16 MiB
Total Installed Size:  1.67 MiB
Net Upgrade Size:      1.66 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 archlinux-keyring-20240429-1-any     1191.6 KiB   974 KiB/s 00:01 [------------------------------------] 100%
(2/2) checking keys in keyring                                     [------------------------------------] 100%
downloading required keys...
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <eworm@archlinux.org>"? [Y/n] 
(2/2) checking package integrity                                   [------------------------------------] 100%
error: archlinux-keyring: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20240429-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)
Errors occurred, no packages were upgraded.
[arielc@ariel-precision5520 ~]$ sudo pacman -Syyu
:: Synchronizing package databases...
 endeavouros                            17.2 KiB   129 KiB/s 00:00 [------------------------------------] 100%
 core                                  123.8 KiB   590 KiB/s 00:00 [------------------------------------] 100%
 extra                                   7.7 MiB  2.04 MiB/s 00:04 [------------------------------------] 100%
 multilib                              138.4 KiB   650 KiB/s 00:00 [------------------------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

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

core/curl                        8.7.1-5        8.7.1-6          0.00 MiB       1.05 MiB
extra/discord                    0.0.51-1       0.0.52-1        -0.22 MiB      74.42 MiB
endeavouros/eos-dracut           1.3-1          1.4-1            0.00 MiB               
extra/firefox                    125.0.2-1      125.0.3-1        0.17 MiB      68.12 MiB
extra/firefox-developer-edition  126.0b6-1      126.0b7-1       -2.62 MiB      68.85 MiB
extra/git                        2.44.0-1       2.45.0-1         1.20 MiB       6.34 MiB
extra/github-cli                 2.48.0-2       2.49.0-1         0.51 MiB       9.91 MiB
extra/iniparser                  4.1-5          4.2-1            0.00 MiB       0.01 MiB
core/libarchive                  3.7.3-3        3.7.4-1          0.02 MiB       0.53 MiB
core/linux                       6.8.7.arch1-2  6.8.8.arch1-1   -0.26 MiB     132.11 MiB
core/linux-headers               6.8.7.arch1-2  6.8.8.arch1-1    0.08 MiB      25.43 MiB
extra/mesa                       1:24.0.5-1     1:24.0.6-2       0.00 MiB      18.45 MiB
extra/ninja                      1.11.1-4       1.12.0-2         0.02 MiB       0.15 MiB
extra/openimageio                2.5.9.0-2      2.5.10.1-1       0.00 MiB       4.30 MiB
core/openssh                     9.7p1-1        9.7p1-2          0.00 MiB       1.12 MiB
core/openssl                     3.2.1-1        3.3.0-1         -0.53 MiB       4.88 MiB
extra/python-opengl              3.1.6-3        3.1.7-1         -0.17 MiB       1.49 MiB
extra/python-validate-pyproject  0.13-3         0.16-1           0.04 MiB       0.08 MiB
extra/sip                        6.8.3-2        6.8.3-3          0.00 MiB       0.60 MiB
core/systemd                     255.5-2        255.5-3          0.00 MiB       8.00 MiB
core/systemd-libs                255.5-2        255.5-3          0.00 MiB       1.07 MiB
core/systemd-resolvconf          255.5-2        255.5-3          0.00 MiB       0.00 MiB
core/systemd-sysvcompat          255.5-2        255.5-3          0.00 MiB       0.01 MiB
extra/vim                        9.1.0346-2     9.1.0380-1       0.00 MiB       2.16 MiB
extra/vim-runtime                9.1.0346-2     9.1.0380-1       0.04 MiB       7.29 MiB
extra/vivaldi                    6.7.3329.17-1  6.7.3329.21-1    0.00 MiB     111.58 MiB

Total Download Size:    547.94 MiB
Total Installed Size:  1654.33 MiB
Net Upgrade Size:        -1.71 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 firefox-125.0.3-1-x86_64               68.1 MiB  1021 KiB/s 01:08 [------------------------------------] 100%
 linux-headers-6.8.8.arch1-1-x86_64     25.4 MiB  1221 KiB/s 00:21 [------------------------------------] 100%
 discord-0.0.52-1-x86_64                74.4 MiB   830 KiB/s 01:32 [------------------------------------] 100%
 firefox-developer-edition-126.0b...    68.9 MiB   737 KiB/s 01:36 [------------------------------------] 100%
 github-cli-2.49.0-1-x86_64              9.9 MiB  1396 KiB/s 00:07 [------------------------------------] 100%
 vim-runtime-9.1.0380-1-x86_64           7.3 MiB   841 KiB/s 00:09 [------------------------------------] 100%
 systemd-255.5-3-x86_64                  8.0 MiB   627 KiB/s 00:13 [------------------------------------] 100%
 mesa-1:24.0.6-2-x86_64                 18.4 MiB   803 KiB/s 00:24 [------------------------------------] 100%
 openssl-3.3.0-1-x86_64                  4.9 MiB   772 KiB/s 00:06 [------------------------------------] 100%
 git-2.45.0-1-x86_64                     6.3 MiB   802 KiB/s 00:08 [------------------------------------] 100%
 vim-9.1.0380-1-x86_64                   2.2 MiB  1058 KiB/s 00:02 [------------------------------------] 100%
 python-opengl-3.1.7-1-any            1522.4 KiB   999 KiB/s 00:02 [------------------------------------] 100%
 vivaldi-6.7.3329.21-1-x86_64          111.6 MiB   968 KiB/s 01:58 [------------------------------------] 100%
 openimageio-2.5.10.1-1-x86_64           4.3 MiB   937 KiB/s 00:05 [------------------------------------] 100%
 openssh-9.7p1-2-x86_64               1149.7 KiB  1519 KiB/s 00:01 [------------------------------------] 100%
 systemd-libs-255.5-3-x86_64          1094.4 KiB  1287 KiB/s 00:01 [------------------------------------] 100%
 sip-6.8.3-3-any                       615.0 KiB  1154 KiB/s 00:01 [------------------------------------] 100%
 python-validate-pyproject-0.16-1-any   77.6 KiB  1175 KiB/s 00:00 [------------------------------------] 100%
 ninja-1.12.0-2-x86_64                 154.6 KiB  1459 KiB/s 00:00 [------------------------------------] 100%
 libarchive-3.7.4-1-x86_64             541.8 KiB  1331 KiB/s 00:00 [------------------------------------] 100%
 iniparser-4.2-1-x86_64                 14.1 KiB   706 KiB/s 00:00 [------------------------------------] 100%
 systemd-sysvcompat-255.5-3-x86_64       6.0 KiB   151 KiB/s 00:00 [------------------------------------] 100%
 systemd-resolvconf-255.5-3-x86_64       3.2 KiB  74.0 KiB/s 00:00 [------------------------------------] 100%
 curl-8.7.1-6-x86_64                  1078.2 KiB   842 KiB/s 00:01 [------------------------------------] 100%
 linux-6.8.8.arch1-1-x86_64            132.1 MiB  1042 KiB/s 02:10 [------------------------------------] 100%
 Total (25/25)                         547.9 MiB  4.22 MiB/s 02:10 [------------------------------------] 100%
(26/26) checking keys in keyring                                   [------------------------------------] 100%
downloading required keys...
:: Import PGP key 76A5EF9054449A5C, "Pierre Schmitz <pierre@archlinux.org>"? [Y/n] 
:: Import PGP key 244740D17C7FD0EC, "Leonidas Spyropoulos <artafinde@archlinux.org>"? [Y/n] 
:: Import PGP key B8AC08600F108CDF, "Jan Alexander Steffens (heftig) <heftig@archlinux.org>"? [Y/n] 
:: Import PGP key F296BDE50368C6CE, "T.J. Townsend <blakkheim@archlinux.org>"? [Y/n] 
:: Import PGP key F6B1610B3ECDBC9F, "Andrew Crerar <crerar@archlinux.org>"? [Y/n] 
:: Import PGP key A85E811EB4CA2E08, "Caleb Maclennan <alerque@archlinux.org>"? [Y/n] 
:: Import PGP key B02854ED753E0F1F, "Anatol Pomozov <anatolik@archlinux.org>"? [Y/n] 
:: Import PGP key 39E4B877E62EB915, "Sven-Hendrik Haase <svenstaro@archlinux.org>"? [Y/n] 
:: Import PGP key C06086337C50773E, "Jelle van der Waa <jelle@archlinux.org>"? [Y/n] 
:: Import PGP key 7A4E76095D8A52E4, "Antonio Rojas <arojas@archlinux.org>"? [Y/n] 
:: Import PGP key FC1B547C8D8172C8, "Levente Polyak <anthraxx@archlinux.org>"? [Y/n] 
:: Import PGP key E1E3CF0539448BFF, "Ike Devolder <ike.devolder@archlinux.org>"? [Y/n] 
( 3/26) checking package integrity                                 [c  o  o  o  o  o  o  o  o  o  o  o  ]   1%
(26/26) checking package integrity                                 [------------------------------------] 100%
error: openssl: signature from "Pierre Schmitz <pierre@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/openssl-3.3.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: systemd-libs: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/systemd-libs-255.5-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: curl: signature from "Leonidas Spyropoulos (Arch Linux Packager key) <artafinde@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/curl-8.7.1-6-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: mesa: signature from "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/mesa-1:24.0.6-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: systemd: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/systemd-255.5-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: discord: signature from "T.J. Townsend <blakkheim@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/discord-0.0.52-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: firefox: signature from "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/firefox-125.0.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: firefox-developer-edition: signature from "Andrew Crerar <crerar@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/firefox-developer-edition-126.0b7-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: git: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/git-2.45.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: github-cli: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/github-cli-2.49.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: iniparser: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/iniparser-4.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: libarchive: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/libarchive-3.7.4-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: linux: signature from "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/linux-6.8.8.arch1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: linux-headers: signature from "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/linux-headers-6.8.8.arch1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: ninja: signature from "Anatol Pomozov (Arch Linux developer account) <anatolik@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/ninja-1.12.0-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: openimageio: signature from "Sven-Hendrik Haase <svenstaro@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/openimageio-2.5.10.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: openssh: signature from "Pierre Schmitz <pierre@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/openssh-9.7p1-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-opengl: signature from "Jelle van der Waa <jelle@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-opengl-3.1.7-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-validate-pyproject: signature from "Jelle van der Waa <jelle@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-validate-pyproject-0.16-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: sip: signature from "Antonio Rojas <arojas@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/sip-6.8.3-3-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: systemd-resolvconf: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/systemd-resolvconf-255.5-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: systemd-sysvcompat: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/systemd-sysvcompat-255.5-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: vim-runtime: signature from "Levente Polyak <anthraxx@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/vim-runtime-9.1.0380-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: vim: signature from "Levente Polyak <anthraxx@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/vim-9.1.0380-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: vivaldi: signature from "Ike Devolder <ike.devolder@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/vivaldi-6.7.3329.21-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.

I guess try to flat out remove it with
sudo rm -rf /etc/pacman.d/gnupg
then

pacman-key --init
sudo pacman-key --populate archlinux endeavouros
[arielc@ariel-precision5520 ~]$ sudo rm -rf /etc/pacman.d/gnupg
[sudo] password for arielc: 
[arielc@ariel-precision5520 ~]$ sudo pacman-key --init
sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/207E2721370D611C760AF32AC534E438D61F938B.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
[arielc@ariel-precision5520 ~]$ sudo pacman-key --populate archlinux endeavouros
==> Appending keys from archlinux.gpg...
gpg: no valid OpenPGP data found.
==> Appending keys from endeavouros.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 7 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20

Thank you for your service.

Were you able to update afterwards?

[arielc@ariel-precision5520 ~]$ sudo pacman -Syy archlinux-keyring
[sudo] password for arielc: 
:: Synchronizing package databases...
 endeavouros                          17.2 KiB  27.2 KiB/s 00:01 [------------------------------------] 100%
 core                                123.8 KiB   200 KiB/s 00:01 [------------------------------------] 100%
 extra                                 7.7 MiB  1606 KiB/s 00:05 [------------------------------------] 100%
 multilib                            138.4 KiB   223 KiB/s 00:01 [------------------------------------] 100%
warning: archlinux-keyring-20240429-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

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

core/archlinux-keyring  20240429-1   20240429-1     1.66 MiB       1.16 MiB

Total Download Size:   1.16 MiB
Total Installed Size:  1.66 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 archlinux-keyring-20240429-1-any   1191.6 KiB   767 KiB/s 00:02 [------------------------------------] 100%
(1/1) checking keys in keyring                                   [------------------------------------] 100%
downloading required keys...
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <eworm@archlinux.org>"? [Y/n] 
(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-20240429-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 think the ā€˜gpg: no valid OpenPGP data found’ from sudo pacman-key --init is a problem but I do not know what to do about it.

Try the first two mitigation options in section 4.3 Signature is unknown trust
https://wiki.archlinux.org/title/Pacman/Package_signing#Signature_is_unknown_trust

The first option had the same errors:

[arielc@ariel-precision5520 ~]$ sudo pacman -Sy --needed archlinux-keyring && sudo pacman -Su
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
warning: archlinux-keyring-20240429-1 is up to date -- skipping
 there is nothing to do
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

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

core/curl                        8.7.1-5        8.7.1-6          0.00 MiB       1.05 MiB
extra/discord                    0.0.51-1       0.0.52-1        -0.22 MiB      74.42 MiB
endeavouros/eos-dracut           1.3-1          1.4-1            0.00 MiB               
extra/firefox                    125.0.2-1      125.0.3-1        0.17 MiB      68.12 MiB
extra/firefox-developer-edition  126.0b6-1      126.0b7-1       -2.62 MiB      68.85 MiB
extra/git                        2.44.0-1       2.45.0-1         1.20 MiB       6.34 MiB
extra/github-cli                 2.48.0-2       2.49.0-1         0.51 MiB       9.91 MiB
extra/iniparser                  4.1-5          4.2-1            0.00 MiB       0.01 MiB
extra/level-zero-loader          1.15.1-1       1.16.15-1        0.34 MiB       0.30 MiB
core/libarchive                  3.7.3-3        3.7.4-1          0.02 MiB       0.53 MiB
core/linux                       6.8.7.arch1-2  6.8.8.arch1-1   -0.26 MiB     132.11 MiB
core/linux-headers               6.8.7.arch1-2  6.8.8.arch1-1    0.08 MiB      25.43 MiB
extra/mesa                       1:24.0.5-1     1:24.0.6-2       0.00 MiB      18.45 MiB
extra/ninja                      1.11.1-4       1.12.0-2         0.02 MiB       0.15 MiB
extra/openimageio                2.5.9.0-2      2.5.10.1-1       0.00 MiB       4.30 MiB
core/openssh                     9.7p1-1        9.7p1-2          0.00 MiB       1.12 MiB
core/openssl                     3.2.1-1        3.3.0-1         -0.53 MiB       4.88 MiB
extra/python-opengl              3.1.6-3        3.1.7-1         -0.17 MiB       1.49 MiB
extra/python-validate-pyproject  0.13-3         0.16-1           0.04 MiB       0.08 MiB
extra/sip                        6.8.3-2        6.8.3-3          0.00 MiB       0.60 MiB
core/systemd                     255.5-2        255.5-3          0.00 MiB       8.00 MiB
core/systemd-libs                255.5-2        255.5-3          0.00 MiB       1.07 MiB
core/systemd-resolvconf          255.5-2        255.5-3          0.00 MiB       0.00 MiB
core/systemd-sysvcompat          255.5-2        255.5-3          0.00 MiB       0.01 MiB
extra/vim                        9.1.0346-2     9.1.0380-1       0.00 MiB       2.16 MiB
extra/vim-runtime                9.1.0346-2     9.1.0380-1       0.04 MiB       7.29 MiB
extra/vivaldi                    6.7.3329.17-1  6.7.3329.21-1    0.00 MiB     111.58 MiB

Total Download Size:    548.24 MiB
Total Installed Size:  1655.80 MiB
Net Upgrade Size:        -1.38 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 firefox-developer-edition-126....    68.9 MiB   989 KiB/s 01:11 [------------------------------------] 100%
 discord-0.0.52-1-x86_64              74.4 MiB   897 KiB/s 01:25 [------------------------------------] 100%
 firefox-125.0.3-1-x86_64             68.1 MiB   774 KiB/s 01:30 [------------------------------------] 100%
 mesa-1:24.0.6-2-x86_64               18.4 MiB  1444 KiB/s 00:13 [------------------------------------] 100%
 github-cli-2.49.0-1-x86_64            9.9 MiB  1052 KiB/s 00:10 [------------------------------------] 100%
 systemd-255.5-3-x86_64                8.0 MiB  1179 KiB/s 00:07 [------------------------------------] 100%
 vivaldi-6.7.3329.21-1-x86_64        111.6 MiB  1085 KiB/s 01:45 [------------------------------------] 100%
 vim-runtime-9.1.0380-1-x86_64         7.3 MiB   923 KiB/s 00:08 [------------------------------------] 100%
 openssl-3.3.0-1-x86_64                4.9 MiB   848 KiB/s 00:06 [------------------------------------] 100%
 linux-headers-6.8.8.arch1-1-x86_64   25.4 MiB   649 KiB/s 00:40 [------------------------------------] 100%
 git-2.45.0-1-x86_64                   6.3 MiB   925 KiB/s 00:07 [------------------------------------] 100%
 openimageio-2.5.10.1-1-x86_64         4.3 MiB   952 KiB/s 00:05 [------------------------------------] 100%
 openssh-9.7p1-2-x86_64             1149.7 KiB   898 KiB/s 00:01 [------------------------------------] 100%
 python-opengl-3.1.7-1-any          1522.4 KiB   762 KiB/s 00:02 [------------------------------------] 100%
 systemd-libs-255.5-3-x86_64        1094.4 KiB   723 KiB/s 00:02 [------------------------------------] 100%
 vim-9.1.0380-1-x86_64                 2.2 MiB   719 KiB/s 00:03 [------------------------------------] 100%
 sip-6.8.3-3-any                     615.0 KiB   992 KiB/s 00:01 [------------------------------------] 100%
 ninja-1.12.0-2-x86_64               154.6 KiB  1129 KiB/s 00:00 [------------------------------------] 100%
 curl-8.7.1-6-x86_64                1078.2 KiB  1064 KiB/s 00:01 [------------------------------------] 100%
 level-zero-loader-1.16.15-1-x86_64  303.6 KiB  1181 KiB/s 00:00 [------------------------------------] 100%
 iniparser-4.2-1-x86_64               14.1 KiB   614 KiB/s 00:00 [------------------------------------] 100%
 python-validate-pyproject-0.16...    77.6 KiB   935 KiB/s 00:00 [------------------------------------] 100%
 systemd-sysvcompat-255.5-3-x86_64     6.0 KiB   137 KiB/s 00:00 [------------------------------------] 100%
 systemd-resolvconf-255.5-3-x86_64     3.2 KiB   159 KiB/s 00:00 [------------------------------------] 100%
 libarchive-3.7.4-1-x86_64           541.8 KiB   990 KiB/s 00:01 [------------------------------------] 100%
 linux-6.8.8.arch1-1-x86_64          132.1 MiB  1068 KiB/s 02:07 [------------------------------------] 100%
 Total (26/26)                       548.2 MiB  4.33 MiB/s 02:07 [------------------------------------] 100%
(27/27) checking keys in keyring                                 [------------------------------------] 100%
downloading required keys...
:: Import PGP key 76A5EF9054449A5C, "Pierre Schmitz <pierre@archlinux.org>"? [Y/n] 

:: Import PGP key 244740D17C7FD0EC, "Leonidas Spyropoulos <artafinde@archlinux.org>"? [Y/n] 
:: Import PGP key B8AC08600F108CDF, "Jan Alexander Steffens (heftig) <heftig@archlinux.org>"? [Y/n] 
:: Import PGP key F296BDE50368C6CE, "T.J. Townsend <blakkheim@archlinux.org>"? [Y/n] 
:: Import PGP key F6B1610B3ECDBC9F, "Andrew Crerar <crerar@archlinux.org>"? [Y/n] 
:: Import PGP key A85E811EB4CA2E08, "Caleb Maclennan <alerque@archlinux.org>"? [Y/n] 
:: Import PGP key E85B8683EB48BC95, "Daniel Bermond <dbermond@archlinux.org>"? [Y/n] 
:: Import PGP key B02854ED753E0F1F, "Anatol Pomozov <anatolik@archlinux.org>"? [Y/n] 
:: Import PGP key 39E4B877E62EB915, "Sven-Hendrik Haase <svenstaro@archlinux.org>"? [Y/n] 
:: Import PGP key C06086337C50773E, "Jelle van der Waa <jelle@archlinux.org>"? [Y/n] 
:: Import PGP key 7A4E76095D8A52E4, "Antonio Rojas <arojas@archlinux.org>"? [Y/n] 
:: Import PGP key FC1B547C8D8172C8, "Levente Polyak <anthraxx@archlinux.org>"? [Y/n] 
:: Import PGP key E1E3CF0539448BFF, "Ike Devolder <ike.devolder@archlinux.org>"? [Y/n] 
( 4/27) checking package integrity                               [-C o  o  o  o  o  o  o  o  o  o  o  ]   4%
(27/27) checking package integrity                               [------------------------------------] 100%
error: openssl: signature from "Pierre Schmitz <pierre@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/openssl-3.3.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: systemd-libs: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/systemd-libs-255.5-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: curl: signature from "Leonidas Spyropoulos (Arch Linux Packager key) <artafinde@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/curl-8.7.1-6-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: mesa: signature from "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/mesa-1:24.0.6-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: systemd: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/systemd-255.5-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: discord: signature from "T.J. Townsend <blakkheim@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/discord-0.0.52-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: firefox: signature from "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/firefox-125.0.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: firefox-developer-edition: signature from "Andrew Crerar <crerar@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/firefox-developer-edition-126.0b7-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: git: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/git-2.45.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: github-cli: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/github-cli-2.49.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: iniparser: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/iniparser-4.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: level-zero-loader: signature from "Daniel Bermond <dbermond@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/level-zero-loader-1.16.15-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: libarchive: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/libarchive-3.7.4-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: linux: signature from "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/linux-6.8.8.arch1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: linux-headers: signature from "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/linux-headers-6.8.8.arch1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: ninja: signature from "Anatol Pomozov (Arch Linux developer account) <anatolik@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/ninja-1.12.0-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: openimageio: signature from "Sven-Hendrik Haase <svenstaro@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/openimageio-2.5.10.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: openssh: signature from "Pierre Schmitz <pierre@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/openssh-9.7p1-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-opengl: signature from "Jelle van der Waa <jelle@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-opengl-3.1.7-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-validate-pyproject: signature from "Jelle van der Waa <jelle@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-validate-pyproject-0.16-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: sip: signature from "Antonio Rojas <arojas@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/sip-6.8.3-3-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: systemd-resolvconf: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/systemd-resolvconf-255.5-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: systemd-sysvcompat: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/systemd-sysvcompat-255.5-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: vim-runtime: signature from "Levente Polyak <anthraxx@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/vim-runtime-9.1.0380-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: vim: signature from "Levente Polyak <anthraxx@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/vim-9.1.0380-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: vivaldi: signature from "Ike Devolder <ike.devolder@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/vivaldi-6.7.3329.21-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.

Second:

[arielc@ariel-precision5520 ~]$ sudo pacman-key --refresh-keys
gpg: error retrieving 'joekamprad@endeavouros.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key E3D8752ACDF595A1: "Johannes Kamprad (joekamprad development key) <joekamprad@endeavouros.com>" 1 new signature
gpg: Total number processed: 1
gpg:         new signatures: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20
gpg: error retrieving 'dalto@endeavouros.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 2B37DD3DB00531E8: "Evan James <dalto@endeavouros.com>" 1 new signature
gpg: Total number processed: 1
gpg:         new signatures: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20
gpg: error retrieving 'info@endeavouros.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 003DB8B0CB23504F: "EndeavourOS <info@endeavouros.com>" 1 new signature
gpg: Total number processed: 1
gpg:         new signatures: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20
gpg: error retrieving 'bryanpwo@endeavouros.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 7EED78C58A63A62E: "Bryan Poerwoatmodjo <bryanpwo@endeavouros.com>" 1 new signature
gpg: Total number processed: 1
gpg:         new signatures: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20
gpg: error retrieving 'manuel@endeavouros.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key AED8858E4B9813F1: "manuel <manuel@endeavouros.com>" 1 new signature
gpg: Total number processed: 1
gpg:         new signatures: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20
gpg: error retrieving 'pudge@endeavouros.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key BC4423F58F260BAF: "Donald J Beck <pudge@endeavouros.com>" 1 new signature
gpg: Total number processed: 1
gpg:         new signatures: 1
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20
gpg: error retrieving 'sradjoker@endeavouros.com' via WKD: No data
gpg: error reading key: No data
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key 8B7B0A2203562CF6: "Sravan Pannala <sradjoker@endeavouros.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: key A6234074498E9CEE: "Christian Hesse <eworm@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2011-08-12 [SC]
      02FD1C7A934E614545849F19A6234074498E9CEE
uid           [ unknown] Christian Hesse <eworm@archlinux.org>
sub   rsa2048 2011-08-12 [E]
sub   ed25519 2019-08-29 [S]
sub   cv25519 2019-08-29 [E]

gpg: key 76A5EF9054449A5C: "Pierre Schmitz <pierre@archlinux.org>" not changed
gpg: key 7F2D434B9741E8AC: "Pierre Schmitz <pierre@archlinux.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   ed25519 2022-10-31 [SC] [expires: 2037-10-27]
      3E80CA1A8B89F69CBA57D98A76A5EF9054449A5C
uid           [ unknown] Pierre Schmitz <pierre@archlinux.org>
sub   ed25519 2022-10-31 [A] [expires: 2037-10-27]
sub   cv25519 2022-10-31 [E] [expires: 2037-10-27]

gpg: key 76A5EF9054449A5C: "Pierre Schmitz <pierre@archlinux.org>" not changed
gpg: key 7F2D434B9741E8AC: "Pierre Schmitz <pierre@archlinux.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   ed25519 2022-10-31 [SC] [expires: 2037-10-27]
      3E80CA1A8B89F69CBA57D98A76A5EF9054449A5C
uid           [ unknown] Pierre Schmitz <pierre@archlinux.org>
sub   ed25519 2022-10-31 [A] [expires: 2037-10-27]
sub   cv25519 2022-10-31 [E] [expires: 2037-10-27]

gpg: key 59E43E106B247368: "Leonidas Spyropoulos <artafinde@archlinux.org>" not changed
gpg: key 244740D17C7FD0EC: "Leonidas Spyropoulos (Arch Linux Packager key) <artafinde@archlinux.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   rsa4096 2017-06-18 [SC] [expires: 2025-07-18]
      B4B759625D4633430B74877059E43E106B247368
uid           [ unknown] Leonidas Spyropoulos <artafinde@archlinux.org>
sub   rsa4096 2022-01-11 [A]
sub   rsa4096 2017-06-18 [E]

gpg: key 59E43E106B247368: "Leonidas Spyropoulos <artafinde@archlinux.org>" not changed
gpg: key 244740D17C7FD0EC: "Leonidas Spyropoulos (Arch Linux Packager key) <artafinde@archlinux.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   rsa4096 2017-06-18 [SC] [expires: 2025-07-18]
      B4B759625D4633430B74877059E43E106B247368
uid           [ unknown] Leonidas Spyropoulos <artafinde@archlinux.org>
sub   rsa4096 2022-01-11 [A]
sub   rsa4096 2017-06-18 [E]

gpg: key 19802F8B0D70FC30: "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" not changed
gpg: key B8AC08600F108CDF: "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   ed25519 2020-05-11 [SC]
      A2FF3A36AAA56654109064AB19802F8B0D70FC30
uid           [ unknown] Jan Alexander Steffens (heftig) <heftig@archlinux.org>
sub   ed25519 2020-05-11 [A]
sub   ed25519 2020-05-11 [S]
sub   cv25519 2020-05-11 [E]

gpg: key 19802F8B0D70FC30: "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" not changed
gpg: key B8AC08600F108CDF: "Jan Alexander Steffens (heftig) <heftig@archlinux.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   ed25519 2020-05-11 [SC]
      A2FF3A36AAA56654109064AB19802F8B0D70FC30
uid           [ unknown] Jan Alexander Steffens (heftig) <heftig@archlinux.org>
sub   ed25519 2020-05-11 [A]
sub   ed25519 2020-05-11 [S]
sub   cv25519 2020-05-11 [E]

gpg: key F296BDE50368C6CE: "T.J. Townsend <blakkheim@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   ed25519 2022-08-08 [SC]
      54C1FD273361EA514A237793F296BDE50368C6CE
uid           [ unknown] T.J. Townsend <blakkheim@archlinux.org>
sub   ed25519 2022-09-04 [SA]
sub   cv25519 2022-08-08 [E]

gpg: key F6B1610B3ECDBC9F: "Andrew Crerar <crerar@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2017-11-17 [SC] [expires: 2025-11-16]
      601F20F1D1BBBF4A78CF5B6DF6B1610B3ECDBC9F
uid           [ unknown] Andrew Crerar <crerar@archlinux.org>
sub   rsa2048 2017-11-17 [E] [expires: 2025-11-16]

gpg: key D4A753468A5A5B67: "Caleb Maclennan <alerque@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   ed25519 2021-07-12 [SC] [expires: 2024-08-11]
      CCB34EBBB9541EF3F7B366C1D4A753468A5A5B67
uid           [ unknown] Caleb Maclennan <alerque@archlinux.org>
sub   rsa4096 2021-07-12 [S] [expires: 2024-08-11]
sub   cv25519 2021-07-12 [E] [expires: 2024-08-11]

gpg: key 019A7474297D8577: "Daniel Bermond <dbermond@archlinux.org>" not changed
gpg: key E85B8683EB48BC95: "Daniel Bermond <dbermond@archlinux.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   rsa2048 2016-06-27 [SC]
      3FFA6AB7B69AAE6CCA263DDE019A7474297D8577
uid           [ unknown] Daniel Bermond <dbermond@archlinux.org>
sub   rsa2048 2016-06-27 [E]

gpg: key 019A7474297D8577: "Daniel Bermond <dbermond@archlinux.org>" not changed
gpg: key E85B8683EB48BC95: "Daniel Bermond <dbermond@archlinux.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2
pub   rsa2048 2016-06-27 [SC]
      3FFA6AB7B69AAE6CCA263DDE019A7474297D8577
uid           [ unknown] Daniel Bermond <dbermond@archlinux.org>
sub   rsa2048 2016-06-27 [E]

gpg: key B02854ED753E0F1F: "Anatol Pomozov (Arch Linux developer account) <anatolik@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa4096 2014-02-04 [SC] [expires: 2026-10-25]
      8E1992167465DB5FB045557CB02854ED753E0F1F
uid           [ unknown] Anatol Pomozov (Arch Linux developer account) <anatolik@archlinux.org>
sub   rsa4096 2014-02-04 [E] [expires: 2026-10-25]

gpg: key 39E4B877E62EB915: "Sven-Hendrik Haase <svenstaro@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa4096 2011-09-10 [SC]
      8FC15A064950A99DD1BD14DD39E4B877E62EB915
uid           [ unknown] Sven-Hendrik Haase <svenstaro@archlinux.org>
sub   rsa4096 2022-07-10 [A]
sub   rsa4096 2011-09-10 [E]

gpg: key C06086337C50773E: "Jelle van der Waa <jelle@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa2048 2011-10-08 [SC]
      E499C79F53C96A54E572FEE1C06086337C50773E
uid           [ unknown] Jelle van der Waa <jelle@archlinux.org>
sub   rsa2048 2011-10-08 [E]

gpg: key 4AC5588F941C2A25: "Antonio Rojas <arojas@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa4096 2014-10-21 [SC]
      9D74DF6F91B7BDABD5815CA84AC5588F941C2A25
uid           [ unknown] Antonio Rojas <arojas@archlinux.org>
sub   rsa2048 2014-11-07 [S]
sub   rsa2048 2014-11-07 [E]

gpg: key FC1B547C8D8172C8: "Levente Polyak <anthraxx@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   rsa4096 2011-11-07 [SC] [expires: 2025-12-31]
      E240B57E2C4630BA768E2F26FC1B547C8D8172C8
uid           [ unknown] Levente Polyak <anthraxx@archlinux.org>
sub   rsa4096 2023-12-26 [A]
sub   rsa4096 2011-11-07 [E]

gpg: key E1E3CF0539448BFF: "Ike Devolder <ike.devolder@archlinux.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pub   ed25519 2021-10-30 [SC] [expires: 2025-12-31]
      531ECF3644A44FEA0B47DBCDE1E3CF0539448BFF
uid           [ unknown] Ike Devolder <ike.devolder@archlinux.org>
sub   cv25519 2021-10-30 [E] [expires: 2025-12-31]

To no avail.

Tried this as well:

[arielc@ariel-precision5520 ~]$ sudo rm -rf /etc/pacman.d/gnupg
[sudo] password for arielc: 
[arielc@ariel-precision5520 ~]$ pacman-key --init
==> ERROR: pacman-key needs to be run as root for this operation.
[arielc@ariel-precision5520 ~]$ sudo !!
sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/3D5ADFBFDAEB115515672E98DB4D88B9192F6DDD.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
[arielc@ariel-precision5520 ~]$ sudo pacman-key --populate
==> Appending keys from archlinux.gpg...
gpg: no valid OpenPGP data found.
==> Appending keys from endeavouros.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 7 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   7  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   7  signed:   0  trust: 0-, 0q, 0n, 7m, 0f, 0u
gpg: next trustdb check due at 2032-05-20
[arielc@ariel-precision5520 ~]$ sudo pacman -Sy archlinux-keyring
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra                                 7.7 MiB  4.88 MiB/s 00:02 [------------------------------------] 100%
 multilib is up to date
warning: archlinux-keyring-20240429-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

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

core/archlinux-keyring  20240429-1   20240429-1     1.66 MiB       1.16 MiB

Total Download Size:   1.16 MiB
Total Installed Size:  1.66 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 archlinux-keyring-20240429-1-any   1191.6 KiB  3.75 MiB/s 00:00 [------------------------------------] 100%
(1/1) checking keys in keyring                                   [------------------------------------] 100%
downloading required keys...
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <eworm@archlinux.org>"? [Y/n] 
(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-20240429-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.

These steps have usually worked for me for any keyring issue:

rm /var/lib/pacman/sync/*
rm -rf /etc/pacman.d/gnupg/*
pacman-key --init
pacman-key --populate
pacman -S --noconfirm archlinux-keyring endeavouros-keyring
pacman -Syyu

Run the commands with sudo or as root.

Do check your system time as well. Compare with your mobile. Down to the minute. A time drift can cause a signature failure if the key expires.

I had the same problem as Asriel 36 hours ago (starting arount 2024 April 28), my initial outputs and responses to chikenf00t’s assistance would be the same and did not (at least of themselves) fix the issue.

I did find my help in this thread:
https://old.reddit.com/r/archlinux/comments/x2sw37/who_is_christian_hesse_and_is_this_error_my_fault/

Most of the tips in that thread didn’t fix the issue (though I appreciate all who left tips on several different forums, several people helped my hone in on the fix that worked for me.) This is the essence of what helped me:

# pacman -Sy archlinux-keyring
...
error: archlinux-keyring: signature from "Christian Hesse <eworm@archlinux.org>" is unknown trust
File /var/cache/pacman/pkg/archlinux-keyring-20240429-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).

# pacman -Q archlinux-keyring; pacman -Ss archlinux-keyring
     archlinux-keyring 20240427-1
core/archlinux-keyring 20240429-1 [installed: 20240427-1]

(relevant commands from history, my pacman commands wouldn't overwrite extant files)
# tar czvf /mnt/space/tmp/t_pacmanStuff2024.tgz /usr/bin/archlinux-keyring-wkd-sync /usr/lib/systemd/system/archlinux-keyring-wkd-sync.service /usr/lib/systemd/system/archlinux-keyring-wkd-sync.timer /usr/lib/systemd/system/timers.target.wants/archlinux-keyring-wkd-sync.timer /usr/share/pacman/keyrings/archlinux-revoked /usr/share/pacman/keyrings/archlinux-trusted /usr/share/pacman/keyrings/archlinux.gpg
# sudo rm /usr/bin/archlinux-keyring-wkd-sync /usr/lib/systemd/system/archlinux-keyring-wkd-sync.service /usr/lib/systemd/system/archlinux-keyring-wkd-sync.timer /usr/lib/systemd/system/timers.target.wants/archlinux-keyring-wkd-sync.timer /usr/share/pacman/keyrings/archlinux-revoked /usr/share/pacman/keyrings/archlinux-trusted /usr/share/pacman/keyrings/archlinux.gpg

(the fix that worked for me:)
curl -L https://archlinux.org/packages/core/any/archlinux-keyring/download/ -o archlinux-keyring-20240429-1-any.pkg.tar.zst
sudo pacman -U archlinux-keyring-20240429-1-any.pkg.tar.zst

I note that pacman (and yay which is what I mostly use) would repeatedly download the correct archlinux keyring but then fail to validate that with (I believe) the old keyring, or it was gpg magic that I did but forgot to fully note and didn't completely grok.

Also it might have helped to temporarily mung /etc/pacman.conf:
[endeavouros]
###FIXME_20240429 restore this to PackageRequired...:
SigLevel = PackageRequired
#SigLevel = Never

By the way, this is my first post here, I created this account to help the folks here that helped me. I hope the formatting makes sense, I’ll try to help or fix this shortly if I made a mistake. I’m a 2 year endeavouros user, it’s been excellent, thank you all contributors!

(edit to clarify:) I diffed the ā€œinvalidā€ keyring and the manually downloaded / forced install keyring that fixed validation; no difference. And I don’t know if it mattered, but I set the SigLevel to Never in pacman.conf; the file contents I posted show that this change was reverted.

(edit 2) clock was always fine. My update history might have been relevant to the genesis of the problem. I was away from the computer 3 months this winter, I updated EOS when I returned and I thought the update was successful, but I’m not exactly sure. Two days later, updates were broken with the problem here.

1 Like

Thank you. I am back up and running.

I believe these lines were what I needed:

# confirm version number?
pacman -Q archlinux-keyring; pacman -Ss archlinux-keyring

sudo rm /usr/bin/archlinux-keyring-wkd-sync /usr/lib/systemd/system/archlinux-keyring-wkd-sync.service /usr/lib/systemd/system/archlinux-keyring-wkd-sync.timer /usr/lib/systemd/system/timers.target.wants/archlinux-keyring-wkd-sync.timer /usr/share/pacman/keyrings/archlinux-revoked /usr/share/pacman/keyrings/archlinux-trusted /usr/share/pacman/keyrings/archlinux.gpg
curl -L https://archlinux.org/packages/core/any/archlinux-keyring/download/ -o archlinux-keyring-20240429-1-any.pkg.tar.zst
sudo pacman -U archlinux-keyring-20240429-1-any.pkg.tar.zst

Thank to everyone for the support. Now on to fix whatever happened to the python apps.

1 Like

Thank you for your contribution :purple_heart:

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