https://github.com/Alexpux/MSYS2-packages/issues/393
Causes and solutions
- This error can happen if there are conflicting gnupg installations in
PATH
. Try running pacman in a special shell likeset PATH=
,msys2_shell.bat
. - MacType can cause this. Put
gpg.exe
andpacman.exe
lines under the[UnloadDll]
section of your .ini file underC:\Program Files (x86)\MacType\ini
orC:\Program Files\MacType\ini
. - Check BLODA.
- It can happen when the upgrade process reported failures (fork errors). Use
update-core
for system upgrades and take care to follow the instructions. - Try re-installing
gpgme
libgpgme
,gnupg
andpacman
packages (you can temporarily disable signature checking in/etc/pacman.conf
). - Try removing
/etc/pacman.d/gnupg
, thenpacman-key --init
,pacman-key --populate msys2
,pacman-key --refresh-keys
. - Maybe
autorebase.bat
is sometimes needed even for 64-bit MSYS2. - Try debugging for GPGME by
export GPGME_DEBUG=9
before runningpacman ...something... 2> ~/gpgmelog
and looking at the logfile~/gpgmelog
.