GPGME error

I cant update system
pacman -Syyu

error: GPGME error: Invalid crypto engine

error: libunistring: required signature not found
:: File /var/cache/pacman/pkg/libunistring-1.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package(PGP signature)).
Do you want to remove it? [Y/n]

etc …etc… and so on with all the packages: I delete one, then the second, etc.:
extra/bind 9.20.4-1 9.20.4-2 0,00 MiB
endeavouros/eos-bash-shared 24.17.4-1 24.17.5-1 0,00 MiB
endeavouros/eos-qogir-icons 5-1 6-1 -0,09 MiB
core/gettext 0.22.5-2 0.23-1 0,49 MiB
extra/glances 4.2.1-2 4.3.0.6-1 0,62 MiB
extra/libjpeg-turbo 3.0.4-1 3.1.0-1 0,08 MiB
core/libunistring 1.2-1 1.3-1 0,20 MiB
core/linux 6.12.6.arch1-1 6.12.7.arch1-1 0,00 MiB
core/linux-headers 6.12.6.arch1-1 6.12.7.arch1-1 0,12 MiB
extra/mc 4.8.32-1 4.8.32-2 0,00 MiB
extra/openconnect 1:9.12-2 1:9.12-3 0,00 MiB
extra/python-orjson 3.10.12-1 3.10.13-1 0,00 MiB
extra/thunar 4.20.0-2 4.20.1-1 0,02 MiB
extra/thunar-archive-plugin 0.5.2-4 0.5.3-1 0,00 MiB
extra/thunar-media-tags-plugin 0.4.0-5 0.5.0-1 0,00 MiB
extra/xfce4-session 4.20.0-4 4.20.0-5 0,00 MiB
extra/xfce4-xkb-plugin 0.8.3-5 0.8.5-1 0,05 MiB

I find this https://bbs.archlinux.org/viewtopic.php?id=276742

and this https://bbs.archlinux.org/viewtopic.php?pid=2147968#p2147968

I think it’s easier to reinstall the system than to use these links. :smile:

Did you try reinstalling from cache? probably will not work, something is badly broken, a reinstall takes 15-20 minutes, sorting this could cost your sanity :smiley:

sudo pacman -U /var/cache/pacman/pkg/gnupg-2.4.7-1-x86_64.pkg.tar.zst

sudo pacman -U /var/cache/pacman/pkg/gnupg-2.4.7-1-x86_64.pkg.tar.zst
[sudo] password for pal:

Loading packages…
error: ‘/var/cache/pacman/pkg/gnupg-2.4.7-1-x86_64.pkg.tar.zst’: could not find or read package

I looked in that directory and there is no such file.

Try updating your mirrors and try again.

OK, try:

sudo pacman -U https://archlinux.uk.mirror.allworldit.com/archlinux/core/os/x86_64/gnupg-2.4.7-1-x86_64.pkg.tar.zst

arning about https://endeavouros.ip-connect.info/repo/$repo/$arch:
Update level is 2244/2286, problem with the mirror?
Continuing.

Moving old EndeavourOS mirrorlist to /etc/pacman.d/endeavouros-mirrorlist.bak.
==> Writing new ranked EndeavourOS mirrorlist to /etc/pacman.d/endeavouros-mirrorlist.

sudo pacman -U https://archlinux.uk.mirror.allworldit.com/archlinux/core/os/x86_64/gnupg-2.4.7-1-x86_64.pkg.tar.zst
:: Retrieving packages…
gnupg-2.4.7-1-x86_64 2.8 MiB 2.19 MiB/s 00:01 [--------------------------------------] 100%
Loading packages…
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: ‘/var/cache/pacman/pkg/gnupg-2.4.7-1-x86_64.pkg.tar.zst’: invalid or corrupted package (PGP signature)

Now I try download this packet from https://archlinux.pkgs.org/rolling/archlinux-core-x86_64/gnupg-2.4.7-1-x86_64.pkg.tar.zst.html

And so nothing worked. I can’t change in a graphical environment link to the broken mirror

But in /etc/pacman.d/mirrorlist its all right

Installing the tor-browser package killed the entire system. As experience shows, it is much faster to reinstall the system than to dance like a shaman with a tambourine around a fire :smile:

there are a bunch of stuff you can try

sudo pacman-key --init
sudo pacman-key --populate archlinux

if the above fails refresh the keys

sudo pacman-key --refresh-keys

update pacman and gnupg

sudo pacman -Syu pacman gnupg

also try clearing pacman cache with sudo pacman -Sc

let me know if the commands above work if any further errors just tell about it here we will investigate further @pavlar

Did you also update your Arch mirrors?