Gnupg conflict with updating packages

i have this problem when i run sudo pacman -Syu and want to update packages i facing with this system error messages

error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: adobe-source-code-pro-fonts: missing required signature
:: File /var/cache/pacman/pkg/adobe-source-code-pro-fonts-2.042u+1.062i+1.026vf-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: archlinux-appstream-data: missing required signature
:: File /var/cache/pacman/pkg/archlinux-appstream-data-20230421-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: iana-etc: missing required signature
:: File /var/cache/pacman/pkg/iana-etc-20230405-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libxml2: missing required signature
:: File /var/cache/pacman/pkg/libxml2-2.10.4-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libgpg-error: missing required signature
:: File /var/cache/pacman/pkg/libgpg-error-1.47-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libgcrypt: missing required signature
:: File /var/cache/pacman/pkg/libgcrypt-1.10.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: zstd: missing required signature
:: File /var/cache/pacman/pkg/zstd-1.5.5-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libldap: missing required signature
:: 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] y
error: pam: missing required signature
:: File /var/cache/pacman/pkg/pam-1.5.2-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: systemd-libs: missing required signature
:: File /var/cache/pacman/pkg/systemd-libs-252.10-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: device-mapper: missing required signature
:: File /var/cache/pacman/pkg/device-mapper-2.03.21-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: cryptsetup: missing required signature
:: File /var/cache/pacman/pkg/cryptsetup-2.6.1-3.2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libpcap: missing required signature
:: File /var/cache/pacman/pkg/libpcap-1.10.4-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: coreutils: missing required signature
:: File /var/cache/pacman/pkg/coreutils-9.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: systemd: missing required signature
:: File /var/cache/pacman/pkg/systemd-252.10-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libxfixes: missing required signature
:: File /var/cache/pacman/pkg/libxfixes-6.0.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: at-spi2-core: missing required signature
:: File /var/cache/pacman/pkg/at-spi2-core-2.48.0-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: babl: missing required signature
:: File /var/cache/pacman/pkg/babl-0.1.104-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).

i was also seeing these before restart

error: failed to commit transaction (conflicting files)
gnupg: /usr/bin/dirmngr exists in filesystem
gnupg: /usr/bin/dirmngr-client exists in filesystem
gnupg: /usr/bin/gpg exists in filesystem
gnupg: /usr/bin/gpg-agent exists in filesystem
gnupg: /usr/bin/gpg-connect-agent exists in filesystem
gnupg: /usr/bin/gpg-wks-server exists in filesystem
gnupg: /usr/bin/gpg2 exists in filesystem
gnupg: /usr/bin/gpgconf exists in filesystem
gnupg: /usr/bin/gpgparsemail exists in filesystem
gnupg: /usr/bin/gpgscm exists in filesystem
gnupg: /usr/bin/gpgsm exists in filesystem
gnupg: /usr/bin/gpgsplit exists in filesystem
gnupg: /usr/bin/gpgtar exists in filesystem
gnupg: /usr/bin/gpgv exists in filesystem
gnupg: /usr/bin/gpgv2 exists in filesystem
gnupg: /usr/bin/kbxutil exists in filesystem
gnupg: /usr/lib/systemd/user/dirmngr.service exists in filesystem
gnupg: /usr/lib/systemd/user/dirmngr.socket exists in filesystem
gnupg: /usr/lib/systemd/user/gpg-agent-browser.socket exists in filesystem
gnupg: /usr/lib/systemd/user/gpg-agent-extra.socket exists in filesystem
gnupg: /usr/lib/systemd/user/gpg-agent-ssh.socket exists in filesystem
gnupg: /usr/lib/systemd/user/gpg-agent.service exists in filesystem
gnupg: /usr/lib/systemd/user/gpg-agent.socket exists in filesystem
gnupg: /usr/lib/systemd/user/sockets.target.wants/dirmngr.socket exists in filesystem
gnupg: /usr/lib/systemd/user/sockets.target.wants/gpg-agent-browser.socket exists in filesystem
gnupg: /usr/lib/systemd/user/sockets.target.wants/gpg-agent-extra.socket exists in filesystem
gnupg: /usr/lib/systemd/user/sockets.target.wants/gpg-agent-ssh.socket exists in filesystem
gnupg: /usr/lib/systemd/user/sockets.target.wants/gpg-agent.socket exists in filesystem
gnupg: /usr/share/man/man1/dirmngr-client.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpg-agent.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpg-check-pattern.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpg-connect-agent.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpg-preset-passphrase.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpg-wks-client.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpg-wks-server.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpg.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpgconf.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpgparsemail.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpgsm.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpgtar.1.gz exists in filesystem
gnupg: /usr/share/man/man1/gpgv.1.gz exists in filesystem
gnupg: /usr/share/man/man1/scdaemon.1.gz exists in filesystem
gnupg: /usr/share/man/man8/dirmngr.8.gz exists in filesystem
Errors occurred, no packages were upgraded."

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

2 Likes

Also,

how can i solve can you help please i tried

sudo rm -R /var/lib/pacman/sync
sudo -E pacman -Syu

in that link but didn’t work


Moderator edit: Fixed formatting

Did you also change/update your mirrors?

like this ?
sudo pacman-mirrors --fasttrack && sudo pacman -Syyu
but still the same

maybe i would do it different i don’t know