While trying to update the system, I’m always getting the following error:
$ yay
error: GPGME error: No data
error: kernel-lts: missing required signature
:: 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
kernel-lts 2,1 KiB 418 B/s 00:05 [------------------------------------------------------------] 100%
error: GPGME error: No data
error: kernel-lts: missing required signature
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))
-> error refreshing databases - exit status 1
I’ve been searching, but couldn’t find any solution so far. Any help?
Thanks for your feedback! I’ve executed the commands one-by-one. But this didn’t bring me the solution.
Result of executing the command for the keyrings:
$ sudo pacman -Syy gnupg archlinux-keyring endeavouros-keyring
:: Synchronizing package databases...
endeavouros 25,9 KiB 227 KiB/s 00:00 [------------------------------------------------------------] 100%
core 132,0 KiB 680 KiB/s 00:00 [------------------------------------------------------------] 100%
extra 8,3 MiB 10,8 MiB/s 00:01 [------------------------------------------------------------] 100%
community 45,0 B 394 B/s 00:00 [------------------------------------------------------------] 100%
multilib 143,1 KiB 795 KiB/s 00:00 [------------------------------------------------------------] 100%
kernel-lts 2,1 KiB 1146 B/s 00:02 [------------------------------------------------------------] 100%
warning: gnupg-2.2.41-1 is up to date -- reinstalling
warning: archlinux-keyring-20230704-1 is up to date -- reinstalling
warning: endeavouros-keyring-20230523-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Package (3) Old Version New Version Net Change
core/archlinux-keyring 20230704-1 20230704-1 0,00 MiB
endeavouros/endeavouros-keyring 20230523-1 20230523-1 0,00 MiB
core/gnupg 2.2.41-1 2.2.41-1 0,00 MiB
Total Installed Size: 10,20 MiB
Net Upgrade Size: 0,00 MiB
:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring [------------------------------------------------------------] 100%
(3/3) checking package integrity [------------------------------------------------------------] 100%
(3/3) loading package files [------------------------------------------------------------] 100%
(3/3) checking for file conflicts [------------------------------------------------------------] 100%
:: Processing package changes...
(1/3) reinstalling gnupg [------------------------------------------------------------] 100%
(2/3) reinstalling archlinux-keyring [------------------------------------------------------------] 100%
==> Appending keys from archlinux.gpg...
gpg: public key DB323392796CA067 is 3037 days newer than the signature
==> Updating trust database...
gpg: next trustdb check due at 2023-10-27
==> Updating trust database...
gpg: next trustdb check due at 2023-10-27
(3/3) reinstalling endeavouros-keyring [------------------------------------------------------------] 100%
==> Appending keys from endeavouros.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2023-10-27
:: Running post-transaction hooks...
(1/4) Reloading system manager configuration...
(2/4) Arming ConditionNeedsUpdate...
(3/4) Checking which packages need to be rebuilt
error: could not open file /var/lib/pacman/sync/kernel-lts.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/kernel-lts.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/kernel-lts.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/kernel-lts.db: Unrecognized archive format
foreign chrome-gnome-shell
foreign optimus-manager
(4/4) Updating the info directory file...
Resulting in the same error:
$ sudo pacman -Syu
error: GPGME error: No data
error: kernel-lts: missing required signature
:: 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
kernel-lts 2,1 KiB 1018 B/s 00:02 [------------------------------------------------------------] 100%
error: GPGME error: No data
error: kernel-lts: missing required signature
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))