When updating my system with the sudo pacman -Syu command, everything goes normally at first, but after all the latest updates are completed
error: libldap: signature from "Frederik Schwan <freswa@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/libldap-2.6.4-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
it gives 30-40 similar error messages, I call them all ‘y’. At the end:
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
It gives an error and the update fails. I searched a bit on the internet and tried several methods but none of them worked. How can I solve this?
:: 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-20230504-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Package (1) Old Version New Version Net Change
core/archlinux-keyring 20230504-1 20230504-1 0,00 MiB
Total Installed Size: 1,61 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%
(1/1) loading package files [--------------------------------------] 100%
(1/1) checking for file conflicts [--------------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling archlinux-keyring [--------------------------------------] 100%
==> Appending keys from archlinux.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2023-06-15
==> Updating trust database...
gpg: next trustdb check due at 2023-06-15
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Checking which packages need to be rebuilt