MSYS2-packages: GPGME error: Invalid crypto engine
This is a super-issue for GPGME error: Invalid crypto engine
and related errors.
About this issue
- Original URL
- State: open
- Created 9 years ago
- Comments: 31 (7 by maintainers)
This is a super-issue for GPGME error: Invalid crypto engine
and related errors.
@runapp My debug output was pretty much the same as yours.
Output
For me, the root cause actually turned out to be the same as an unrelated problem where git rebase interactive was hanging.
The culprit was good old BLODA COMODO. It was more obvious in that git problem because I saw high CPU usage from COMODO while
git rebase -i
was hanging.However, turning off all of COMODO’s services/systems wasn’t enough to fix the problem. The workaround (discussed here, here, here, and here) turned out to be to go to
Settings > Advanced protection > Miscellaneous > Don't detect shellcode injections in these applications
and addFile Groups > All Applications
to the exclusion list.After that, git rebase interactive and pacman worked properly.
Causes and solutions
PATH
. Try running pacman in a special shell likeset PATH=
,msys2_shell.bat
.gpg.exe
andpacman.exe
lines under the[UnloadDll]
section of your .ini file underC:\Program Files (x86)\MacType\ini
orC:\Program Files\MacType\ini
.update-core
for system upgrades and take care to follow the instructions.gpgme
libgpgme
,gnupg
andpacman
packages (you can temporarily disable signature checking in/etc/pacman.conf
)./etc/pacman.d/gnupg
, thenpacman-key --init
,pacman-key --populate msys2
,pacman-key --refresh-keys
.autorebase.bat
is sometimes needed even for 64-bit MSYS2.export GPGME_DEBUG=9
before runningpacman ...something... 2> ~/gpgmelog
and looking at the logfile~/gpgmelog
.References
Had this issue due to MacType; adding
pacman.exe
andgpg.exe
to[UnloadDll]
solved my issue.Yo quise compilar Super Mario 64 Plus en MSYS2 MINGW64 y me aparece esto: advertencia: No se ha encontrado el depósito público de claves; ¿ya se ha ejecutado «pacman-key --init»? error: Error de GPGME: Motor de cifrado no válido advertencia: No se ha encontrado el depósito público de claves; ¿ya se ha ejecutado «pacman-key --init»? error: Error de GPGME: Motor de cifrado no válido advertencia: No se ha encontrado el depósito público de claves; ¿ya se ha ejecutado «pacman-key --init»? error: Error de GPGME: Motor de cifrado no válido error: la base de datos «mingw32» no es válida (base de datos no válida o dañada (firma PGP)) error: la base de datos «mingw64» no es válida (base de datos no válida o dañada (firma PGP)) error: la base de datos «msys» no es válida (base de datos no válida o dañada (firma PGP))
Que debo hacer?
I use MSYS2 with ConEmu and was having this issue as well. Running
pacman -Syu
once in themsys2_shell.cmd
seems to have resolved the issue and now I can run it inside ConEmu again.Also, for MacType users, when you put following lines into your
.ini
file underC:\Program Files (x86)\MacType\ini
orC:\Program Files\MacType\ini
, GPGME will works properly.To people who find a solution here, please leave a comment to let us know what worked for you if you wouldn’t mind. Thanks in advance.
For MacType users, if you have this problem even after adding
gpg.exe
under[UnloadDll]
, try addingpacman.exe
also.