Error gpgme error invalid crypto engine

This is a super-issue for GPGME error: Invalid crypto engine and related errors.

I removed my local Git installation since it has own gpg.exe. I killed my MacType process. I reinstalled gnupg and pacman packages (I don’t know how to reinstall gpgme since pacman -S gpgme won’t work) with temporarily disabling signature checking in /etc/pacman.conf. Then, when I remove /etc/pacman.d/gnupg and then pacman-key --init, pacman-key --populate msys2, pacman-key --refresh-keys, I got an error:

$ pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: Generating pacman keyring master key...
gpg: skipping control `%no-protection' ()
+++++
.+++++
gpg: key 5BFE0383 marked as ultimately trusted
gpg: Done
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u

$ pacman-key --populate msys2
==> Appending keys from msys2.gpg...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Locally signing trusted keys in keyring...
  -> Locally signing key D55E7A6D7CE9BA1587C0ACACF40D263ECA25678A...
  -> Locally signing key 123D4D51A1793859C2BE916BBBE514E53E0D0813...
  -> Locally signing key B91BCF3303284BF90CC043CA9F418C233E652008...
  -> Locally signing key 9DD0D4217D75A33B896159E6DA7EF2ABAEEA755C...
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   4  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   4  signed:   3  trust: 0-, 0q, 0n, 4m, 0f, 0u
gpg: depth: 2  valid:   3  signed:   0  trust: 3-, 0q, 0n, 0m, 0f, 0u

$ pacman-key --refresh-keys
gpg: refreshing 8 keys from hkp://pool.sks-keyservers.net
gpg: requesting key 5BFE0383 from hkp server pool.sks-keyservers.net
gpg: requesting key CA25678A from hkp server pool.sks-keyservers.net
gpg: requesting key AEEA755C from hkp server pool.sks-keyservers.net
gpg: requesting key 3E0D0813 from hkp server pool.sks-keyservers.net
gpg: requesting key 3E652008 from hkp server pool.sks-keyservers.net
gpg: requesting key A47D45A1 from hkp server pool.sks-keyservers.net
gpg: requesting key 2C51581E from hkp server pool.sks-keyservers.net
gpg: requesting key 4CA56930 from hkp server pool.sks-keyservers.net
gpgkeys: key A5C4777EE7AF8299344B192750B20A585BFE0383 not found on keyserver
gpg: DBG: armor-keys-failed (KEY 0xA5C4777EE7AF8299344B192750B20A585BFE0383 BEGIN
) ->0
gpg: DBG: armor-keys-failed (KEY 0xA5C4777EE7AF8299344B192750B20A585BFE0383 FAILED 6
) ->6
gpg: key CA25678A: "Alexey Pavlov (Alexpux) <alexey.pawlow@gmail.com>" 4 new signatures
gpg: key AEEA755C: "Martell Malone (martell) <martellmalone@gmail.com>" 3 new signatures
gpg: key 3E0D0813: "Ray Donnelly (MSYS2 Developer - master key) <mingw.android@gmail.com>" 2 new signatures
gpg: key 3E652008: "Ignacio Casal Quinteiro <icquinteiro@gmail.com>" 2 new signatures
gpg: key A47D45A1: "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" 1 new signature
gpg: key 2C51581E: "Martell Malone (MSYS2 Developer) <martellmalone@gmail.com>" not changed
gpg: key 4CA56930: "Ray Donnelly (MSYS2 Developer) <mingw.android@gmail.com>" 2 new signatures
gpg: Total number processed: 7
gpg:              unchanged: 1
gpg:         new signatures: 14
gpg: keyserver communications error: key not found
gpg: keyserver communications error: bad public key
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   4  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   4  signed:   3  trust: 0-, 0q, 0n, 4m, 0f, 0u
gpg: depth: 2  valid:   3  signed:   0  trust: 3-, 0q, 0n, 0m, 0f, 0u
gpg: keyserver refresh failed: bad public key
==> ERROR: A specified local key could not be updated from a keyserver.

I also ran autorebase.bat, but still getting errors when I run pacman -Su:

$ pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (11) bash-4.3.042-2  curl-7.45.0-1  flex-2.6.0-1  gcc-libs-4.9.2-6
              gmp-6.1.0-1  grep-2.22-1  libcurl-7.45.0-1  libreadline-6.3.008-6
              mintty-1~2.2.1-1  msys2-runtime-2.4.0.16752.6eb10ef-1
              ncurses-6.0.20151121-1

Total Download Size:    7.76 MiB
Total Installed Size:  33.82 MiB
Net Upgrade Size:      -0.43 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages ...
 msys2-runtime-2.4.0...     2.3 MiB  9.60M/s 00:00 [#####################] 100%
 bash-4.3.042-2-x86_64   1865.2 KiB  9.15M/s 00:00 [#####################] 100%
 gcc-libs-4.9.2-6-x86_64  646.9 KiB  8.54M/s 00:00 [#####################] 100%
 gmp-6.1.0-1-x86_64       359.7 KiB  5.58M/s 00:00 [#####################] 100%
 ncurses-6.0.2015112...  1117.3 KiB  4.53M/s 00:00 [#####################] 100%
 libcurl-7.45.0-1-x86_64  167.7 KiB  5.28M/s 00:00 [#####################] 100%
 curl-7.45.0-1-x86_64     578.7 KiB  4.87M/s 00:00 [#####################] 100%
 flex-2.6.0-1-x86_64      280.4 KiB  5.71M/s 00:00 [#####################] 100%
 grep-2.22-1-x86_64       220.7 KiB  2.32M/s 00:00 [#####################] 100%
 libreadline-6.3.008...   243.3 KiB  2.45M/s 00:00 [#####################] 100%
 mintty-1~2.2.1-1-x86_64  134.2 KiB  1561K/s 00:00 [#####################] 100%
(11/11) checking keys in keyring                   [#####################] 100%
(11/11) checking package integrity                 [#####################] 100%
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
:: File /var/cache/pacman/pkg/msys2-runtime-2.4.0.16752.6eb10ef-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
  • Index
  • » Pacman & Package Upgrade Issues
  • » GPGME error: Invalid crypto engine

#1 2016-11-17 11:49:00

rohithreddy
Member
Registered: 2016-04-05
Posts: 38

GPGME error: Invalid crypto engine

I tried to make a full system upgrade

error: GPGME error: Invalid crypto engine
File /var/cache/pacman/pkg/libgcrypt-1.7.3-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). 
sudo pacman -S --force libgcrypt 
[sudo] password for alex: 
warning: libgcrypt-1.7.3-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libgcrypt-1.7.3-1

Total Download Size:   0.46 MiB
Total Installed Size:  1.29 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 libgcrypt-1.7.3-1-x86_64     466.9 KiB   126K/s 00:04 [############################] 100%
(1/1) checking keys in keyring                         [############################] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity                       [############################] 100%
error: GPGME error: Invalid crypto engine
error: libgcrypt: missing required signature
:: File /var/cache/pacman/pkg/libgcrypt-1.7.3-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
sudo pacman -Syu 
error: GPGME error: Invalid crypto engine
error: fluidsynth: missing required signature
:: File /var/cache/pacman/pkg/fluidsynth-1.1.6-5-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
sudo pacman-key --init
[sudo] password for alex: 
gpg: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
gpg: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
==> Updating trust database...
gpg: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
==> ERROR: Trust database could not be updated.
 pacman -Qi gnupg gpgme libgcrypt 
Name            : gnupg
Version         : 2.1.15-1
Description     : Complete and free implementation of the OpenPGP standard
Architecture    : x86_64
URL             : http://www.gnupg.org/
Licenses        : GPL
Groups          : None
Provides        : dirmngr  gnupg2=2.1.15
Depends On      : npth  libgpg-error  libgcrypt  libksba  libassuan  pinentry  bzip2
                  readline  gnutls  sqlite
Optional Deps   : libldap: gpg2keys_ldap [installed]
                  libusb-compat: scdaemon [installed]
Required By     : gpgme  keybase
Optional For    : None
Conflicts With  : dirmngr  gnupg2
Replaces        : dirmngr  gnupg2
Installed Size  : 8.25 MiB
Packager        : Gaetan Bisson <bisson@archlinux.org>
Build Date      : Fri 19 Aug 2016 06:10:44 AM IST
Install Date    : Thu 03 Nov 2016 02:29:13 PM IST
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

Name            : gpgme
Version         : 1.7.1-2
Description     : A C wrapper library for GnuPG
Architecture    : x86_64
URL             : http://www.gnupg.org/related_software/gpgme/
Licenses        : LGPL
Groups          : None
Provides        : None
Depends On      : libgpg-error  gnupg>=2
Optional Deps   : None
Required By     : gmime  pacman
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1307.00 KiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Thu 27 Oct 2016 09:35:02 PM IST
Install Date    : Sun 13 Nov 2016 10:49:22 AM IST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Name            : libgcrypt
Version         : 1.7.3-1
Description     : General purpose cryptographic library based on the code from GnuPG
Architecture    : x86_64
URL             : http://www.gnupg.org
Licenses        : LGPL
Groups          : None
Provides        : None
Depends On      : libgpg-error
Optional Deps   : None
Required By     : cryptsetup  gcr  gnupg  lib32-libgcrypt  libgnome-keyring  libquvi
                  libsecret  libsystemd  libxslt  mesa  smbclient  systemd  weechat
                  wireshark-cli  xorg-server  xorg-server-xdmx  xorg-server-xephyr
                  xorg-server-xnest  xorg-server-xvfb
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1321.00 KiB
Packager        : Gaetan Bisson <bisson@archlinux.org>
Build Date      : Wed 17 Aug 2016 10:13:22 PM IST
Install Date    : Thu 03 Nov 2016 02:15:49 PM IST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Last edited by rohithreddy (2016-11-17 11:50:59)

#2 2016-11-17 12:30:59

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,018
Website

Re: GPGME error: Invalid crypto engine

Looks like you’ve been doing partial updates. Don’t do that. Also, don’t force the installation of packages either, unless you have a very good reason for doing so.

Boot a live arch CD, mount your partitions, and use pacman’s —root option to bring your installation fully up-to-date.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

#3 2016-11-17 21:24:34

Anthemion
Member
Registered: 2016-11-17
Posts: 1

Re: GPGME error: Invalid crypto engine

I had the same problem. A couple of my packages were erroring out and keeping pacman -Syu from completing.

My solution was to install gnupg from source:

https://www.gnupg.org/download/index.html

Once I installed that and removed the offending packages pacman worked again. I’m assuming that pacman started using a new encryption algorithm and the dependency on the newer gnupg was not updated breaking the unsupported partial upgrades.

Happy hacking!

#4 2016-11-17 21:29:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,376
Website

Re: GPGME error: Invalid crypto engine

The «solution» is to only do full updates.

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Содержание

  1. Arch Linux
  2. #1 2022-05-28 10:22:42
  3. [SOLVED] GPGME error: Invalid crypto engine
  4. #2 2022-05-28 11:06:12
  5. Re: [SOLVED] GPGME error: Invalid crypto engine
  6. #3 2022-05-28 14:36:02
  7. Re: [SOLVED] GPGME error: Invalid crypto engine
  8. #4 2022-05-28 18:40:13
  9. Re: [SOLVED] GPGME error: Invalid crypto engine
  10. #5 2022-05-28 19:07:30
  11. Re: [SOLVED] GPGME error: Invalid crypto engine
  12. Arch Linux
  13. #1 2021-11-26 20:31:01
  14. [SOLVED] pacman broken: error: GPGME error: Invalid crypto engine
  15. #2 2021-11-27 08:20:23
  16. Re: [SOLVED] pacman broken: error: GPGME error: Invalid crypto engine
  17. #3 2021-11-27 08:28:25
  18. Re: [SOLVED] pacman broken: error: GPGME error: Invalid crypto engine
  19. #4 2021-11-27 08:34:49
  20. Re: [SOLVED] pacman broken: error: GPGME error: Invalid crypto engine
  21. error: GPGME error: Invalid crypto engine #617
  22. Comments
  23. Arch Linux
  24. #1 2014-01-20 04:01:09
  25. [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  26. #2 2014-01-20 04:17:07
  27. Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  28. #3 2014-01-20 04:45:42
  29. Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  30. #4 2014-01-20 04:46:46
  31. Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  32. #5 2014-01-20 04:49:29
  33. Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  34. Arch Linux
  35. #1 2014-01-20 04:01:09
  36. [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  37. #2 2014-01-20 04:17:07
  38. Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  39. #3 2014-01-20 04:45:42
  40. Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  41. #4 2014-01-20 04:46:46
  42. Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages
  43. #5 2014-01-20 04:49:29
  44. Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

Arch Linux

You are not logged in.

#1 2022-05-28 10:22:42

[SOLVED] GPGME error: Invalid crypto engine

While running «pacman -Syu», my laptop ran out of power and now it fails to boot.

I booted the live system, mounted the laptop’s partitions, and chrooted into the Arch system.

When I try to complete the failed update, I get many error messages indicating that gpgme is messed up:

I tried to restore «gpgme» from the package cache using

An attempt to restore «gnupg» returned the same errors.

With little hope, I tried resetting the keys next:

Any other ideas?

Last edited by tucuxi (2022-05-28 18:54:15)

#2 2022-05-28 11:06:12

Re: [SOLVED] GPGME error: Invalid crypto engine

#3 2022-05-28 14:36:02

Re: [SOLVED] GPGME error: Invalid crypto engine

I followed the steps described in the article you linked to up to

The result is one error message for each package scheduled for updating:

Next attempt: reinstall all packages using the same method, i.e.

Same error message, just more of them.

#4 2022-05-28 18:40:13

Re: [SOLVED] GPGME error: Invalid crypto engine

With a broken gpg you can not use the —sysroot option:

#5 2022-05-28 19:07:30

Re: [SOLVED] GPGME error: Invalid crypto engine

Thanks, I will keep that in mind for next time. Meanwhile, I fixed my issues in the following way. Turns out that the broken gnupg package was just one of several dozen.

Delete all files that were installed by the gnupg package. (I got the list from a different Arch machine because pacman -Ql didn’t work.)

pacstrap gnupg (Step 1 was necessary because pacstrap cannot overwrite existing files, apparently.)

Reinstall all broken packages with pacman -S —override. These packages all had zero-sized files in /var/lib/pacman/local.)

Источник

Arch Linux

You are not logged in.

#1 2021-11-26 20:31:01

[SOLVED] pacman broken: error: GPGME error: Invalid crypto engine

I cannot do any operations in pacman any more, because I’m getting the error ‘error: GPGME error: Invalid crypto engine’.

This happened after I wanted to do a full system upgrade, which kept failing because keys did not have enough trust, despite me rebuilding the pacman keyring multiple times and even deleting the pacman gpg folder, and completely re-creating the key database.
After some googling I came across this post: https://bbs.archlinux.org/viewtopic.php?id=267364 where it was said to reinstall the gnupg package (pacman -S gnupg) which I did, after that I got the aforementioned error.

Last edited by beelzebot (2021-11-27 08:45:55)

#2 2021-11-27 08:20:23

Re: [SOLVED] pacman broken: error: GPGME error: Invalid crypto engine

I downgraded back to the old gnupgp package version but now I’m back to the orignial problem, can’t upgrade because of signature errors.

Last edited by beelzebot (2021-11-27 08:27:05)

#3 2021-11-27 08:28:25

Re: [SOLVED] pacman broken: error: GPGME error: Invalid crypto engine

Edit:
Please post the output from `pacman -Syu` as it is now.

Last edited by loqs (2021-11-27 08:29:44)

#4 2021-11-27 08:34:49

Re: [SOLVED] pacman broken: error: GPGME error: Invalid crypto engine

I downgraded back to the old gnupgp package version

Does this imply you’re *now* running a partial update or did you previously conduct a partial update, moving only gnupgp out of sync?

Источник

error: GPGME error: Invalid crypto engine #617

Hi, XP x64, i always get this error when try pacman

error: GPGME error: Invalid crypto engine

I tried solutions from this post without luck
#393

For example, if do this

Try removing /etc/pacman.d/gnupg, then pacman-key —init, pacman-key —populate msys2, pacman-key —refresh-keys

When do the last «pacman-key —refresh-keys» i get this at the end

gpg: Total number processed: 7
gpg: unchanged: 7
gpg: keyserver communications error: key not found
gpg: keyserver communications error: bad public key
gpg: keyserver refresh failed: bad public key
==> ERROR:

Any advice will be welcome, thanks

The text was updated successfully, but these errors were encountered:

Same problem here on Windows XP Professional x64 Edition.
I noticed a bash.exe.stackdump file lying around in my home directory. Perhaps bash crashed at one point and didn’t get to finish setting everything up.
Exception: STATUS_STACK_OVERFLOW at rip=00077EF25B7 rax=0000000000001278 rbx=0000000000000420 rcx=0000000000000000 rdx=0000000180010018 rsi=00000000FFFFB110 rdi=00000000FFFFB118 r8 =00000000000207A4 r9 =000000018029F5E0 r10=00000000FFFF9000 r11=00000000FFE03890 r12=00000000FFFFAF90 r13=00000000000002B8 r14=00000000FFFFB2C0 r15=0000000600093E01 rbp=00000000FFFFAFF0 rsp=00000000FFFFAEB0 program=C:msys64usrbinbash.exe, pid 3024, thread unknown (0x7C4) cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B Stack trace: Frame Function Args 000FFFFAFF0 00077EF25B7 (00000000003, 000000002B8, 00000000000, 000FFFFB118) 000FFFFAFF0 00077D5B72A (000000002B8, 00000000000, 000FFFFB118, 0018029F5E0) 000FFFFAFF0 00077D5B91C (00000000200, 00000000000, 00000000000, 00000000001) 000FFFFAFF0 001800BF2DA (000FFFFB0B0, 00000000000, 00000000000, 00000000000) 000FFFFB130 001800BFEA5 (00000000001, 001004D5858, 0010040F65E, 00000000000)

I can confirm the above issues on Windows 10 Pro (1511) 64 bit. I can’t update my fresh Msys2 installation.

I’ve got the same issue on Windows 7 Pro 64 Bit. I can’t update my fresh MSYS2 installation. I’ve tried re-installing MSYS2, but I still have the same issue.

It’s caused by your Anti Virus or another program that injects DLLs.

What does this command show? pldd $(ps | grep bash | head -1 | awk ‘‘)

It’s caused by your Anti Virus or another program that injects DLLs.

Much thanks to you mati865. You were right!

Источник

Arch Linux

You are not logged in.

#1 2014-01-20 04:01:09

[SOLVED] «GPGME: Invalid crypto engine» when installing packages

As of earlier today, my long-working Arch box has been having errors installing any packages:

Rewinding a bit:

Earlier today I installed wireshark. Whenever I ran it, I got an error about not finding libgcrypt.so. It’s working now, but unfortunately, I have no idea how I fixed it.

google-chrome-dev has been giving me several messages about pages not responding today, which I feel could be related, as it happens to depend on libgcrypt15.

Anyway, I’m now no longer able to install any packages. Any help would be appreciated.

Last edited by JJJollyjim (2014-01-20 04:49:55)

#2 2014-01-20 04:17:07

Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

There are a couple of thread about this in the pacman upgrades forum. Find them, reinstall/upgrade libgcrypt and it should start working.

Last edited by Scimmia (2014-01-20 04:18:20)

Online

#3 2014-01-20 04:45:42

Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

Fantastic, thanks. How do I mark a post as solved?

#4 2014-01-20 04:46:46

Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

You edit the first post and add it to the title.

Online

#5 2014-01-20 04:49:29

Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

Oh, makes sense, I was expecting something more elegant

Источник

Arch Linux

You are not logged in.

#1 2014-01-20 04:01:09

[SOLVED] «GPGME: Invalid crypto engine» when installing packages

As of earlier today, my long-working Arch box has been having errors installing any packages:

Rewinding a bit:

Earlier today I installed wireshark. Whenever I ran it, I got an error about not finding libgcrypt.so. It’s working now, but unfortunately, I have no idea how I fixed it.

google-chrome-dev has been giving me several messages about pages not responding today, which I feel could be related, as it happens to depend on libgcrypt15.

Anyway, I’m now no longer able to install any packages. Any help would be appreciated.

Last edited by JJJollyjim (2014-01-20 04:49:55)

#2 2014-01-20 04:17:07

Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

There are a couple of thread about this in the pacman upgrades forum. Find them, reinstall/upgrade libgcrypt and it should start working.

Last edited by Scimmia (2014-01-20 04:18:20)

Online

#3 2014-01-20 04:45:42

Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

Fantastic, thanks. How do I mark a post as solved?

#4 2014-01-20 04:46:46

Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

You edit the first post and add it to the title.

Online

#5 2014-01-20 04:49:29

Re: [SOLVED] «GPGME: Invalid crypto engine» when installing packages

Oh, makes sense, I was expecting something more elegant

Источник

I am trying to check use gpgme on a C++ project but when I try to access the OpenPGP engine

I have install GnuPG on my computer, and I’m running under windows.

More over the command gpgconf and gpg2 works fine, so GnuGP is well installed

I set gpgme’s debug level to 9 and I got an error here’s the log :

GPGME 2015-12-28 19:05:21 <0x2b18>  gpgme_debug: level=9
GPGME 2015-12-28 19:05:21 <0x2b18>  gpgme_debug: gpgme='D:CODINGC++binDebug'
GPGME 2015-12-28 19:05:21 <0x2b18>  gpgme_check_version: call: 0=00000000, req_version=(null), VERSION=1.6.0
GPGME 2015-12-28 19:05:21 <0x2b18>  gpgme_check_version_internal: call: 0=00000000, req_version=(null), offset_sig_validity=32
GPGME 2015-12-28 19:05:21 <0x2b18>  gpgme-dinfo: gpgconf='C:Program Files (x86)GNUGnuPGgpgconf.exe'
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_pipe: enter: filedes=0028F680, inherit_idx=1 (GPGME uses it for reading)
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_pipe: leave: read=0x0 (00000150/0x0), write=0x1 (00000164/0x0)
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: enter: path=0AF93FD0, path=C:Program Files (x86)GNUGnuPGgpgconf.exe
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, argv[ 0] = C:Program Files (x86)GNUGnuPGgpgconf.exe
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, argv[ 1] = --list-dirs
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, tmp_name = C:UsersUserAppDataLocalTempgpgme-HBCBJ6
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, CreateProcess failed: ec=87
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: error: Input/output error
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: enter: fd=00000000
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: check: fd=00000000, fd=0 -> handle=00000150 socket=-1 dupfrom=-1
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: leave: result=0
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: enter: fd=00000001
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: check: fd=00000001, fd=1 -> handle=00000164 socket=-1 dupfrom=-1
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: leave: result=0
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_pipe: enter: filedes=0028F680, inherit_idx=1 (GPGME uses it for reading)
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_pipe: leave: read=0x0 (00000168/0x0), write=0x1 (00000174/0x0)
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: enter: path=0AF93FD0, path=C:Program Files (x86)GNUGnuPGgpgconf.exe
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, argv[ 0] = C:Program Files (x86)GNUGnuPGgpgconf.exe
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, argv[ 1] = --list-components
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, tmp_name = C:UsersUserAppDataLocalTempgpgme-4Cb3i3
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, CreateProcess failed: ec=87
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: error: Input/output error
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: enter: fd=00000000
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: check: fd=00000000, fd=0 -> handle=00000168 socket=-1 dupfrom=-1
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: leave: result=0
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: enter: fd=00000001
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: check: fd=00000001, fd=1 -> handle=00000174 socket=-1 dupfrom=-1
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: leave: result=0
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_pipe: enter: filedes=0028FA5C, inherit_idx=1 (GPGME uses it for reading)
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_pipe: leave: read=0x0 (0000017C/0x0), write=0x1 (00000190/0x0)
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: enter: path=0AF93FD0, path=C:Program Files (x86)GNUGnuPGgpgconf.exe
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, argv[ 0] = C:Program Files (x86)GNUGnuPGgpgconf.exe
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, argv[ 1] = --version
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, tmp_name = C:UsersUserAppDataLocalTempgpgme-DrOuSZ
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: check: path=0AF93FD0, CreateProcess failed: ec=87
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_spawn: error: Input/output error
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: enter: fd=00000000
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: check: fd=00000000, fd=0 -> handle=0000017C socket=-1 dupfrom=-1
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: leave: result=0
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: enter: fd=00000001
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: check: fd=00000001, fd=1 -> handle=00000190 socket=-1 dupfrom=-1
GPGME 2015-12-28 19:05:21 <0x2b18>  _gpgme_io_close: leave: result=0
GPGME 2015-12-28 19:05:21 <0x2b18>  engine.c:365: returning error: Invalid crypto engine
GPGME 2015-12-28 19:05:21 <0x2b18>  engine.c:155: returning error: Invalid crypto engine
Invalid crypto engine

EDIT :
Here’s the code I ran :

#include "gpgme.h"
#include <iostream>
using namespace std;

void genKey()
{
    gpgme_set_global_flag("debug","9");
    gpgme_check_version(NULL);
    gpg_error_t test = gpgme_engine_check_version(GPGME_PROTOCOL_OpenPGP);
    cout << gpgme_strerror(test) << endl;
    cout << "Engine : " << gpgme_get_dirinfo("gpg-name") << endl;
}

Здравствуйте, я не знаю как у меня поломался пакман, сам я не эксперементировал с системой
Manjaro i3
при попытке установить любой пакет выдает ошибку
как пример:

проверка ключей [#################################################] 100%
предупреждение: Public keyring not found; have you run ‘pacman-key —init’?
ошибка: ошибка GPGME: Недопустимый криптомеханизм
(1/1) проверка целостности пакета [#################################################] 100%
предупреждение: Public keyring not found; have you run ‘pacman-key —init’?
ошибка: ошибка GPGME: Недопустимый криптомеханизм
ошибка: neofetch: не найдена необходимая подпись
:: Файл /var/cache/pacman/pkg/neofetch-7.1.0-2-any.pkg.tar.zst поврежден (неверный или поврежденный пакет(PGP-подпись)).
Хотите его удалить? [Y/n]
ошибка: не удалось завершить транзакцию (неверный или поврежденный пакет(PGP-подпись))
Обнаружены ошибки, пакеты не обновлены.

если я ввожу требуемую команду то:
sudo pacman-key —init
gpg: symbol lookup error: gpg: undefined symbol: gcry_get_config, version GCRYPT_1.6
chmod: невозможно получить доступ к ‘/etc/pacman.d/gnupg//trustdb.gpg’: Нет такого файла или каталога
gpg: symbol lookup error: gpg: undefined symbol: gcry_get_config, version GCRYPT_1.6
gpg: symbol lookup error: gpg: undefined symbol: gcry_get_config, version GCRYPT_1.6
==> Generating pacman master key. This may take some time.
gpg: symbol lookup error: gpg: undefined symbol: gcry_get_config, version GCRYPT_1.6
==> Обновление таблицы доверия…
gpg: symbol lookup error: gpg: undefined symbol: gcry_get_config, version GCRYPT_1.6
==> ОШИБКА: Не удалось обновить таблицу доверия.

это все уже при выключенной проверке ключей в конфигах, странно что он все еще их проверяет хотя я ее выключил.
пробовал много, проходился по разным форумам, но оно никак не пофиксится, есть конечно план б это переустановка полностью системы, но я уверен что есть способ все исправить.

тоесть сейчас я не могу обновить систему, установить что-либо.
если от меня требуется какая-либо информация, пожалуйста напишите что нужно еще предоставить, просто я уже запутался в этом всем и буквально в отчаянии, уже даже и не знаю что надо предоставить вам.
Спасибо.

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.

#
2 года, 12 месяцев назад

Xts avatar

Темы:

33

Сообщения:

973

Участник с: 13 ноября 2013

Привет всем, так получилось, что снес glibc, ну и само собой все полетело. Пробую вернуть его обратно, загрузившись с live, таким вот путем, pacman —sysroot /mnt -S glibc. Но ругается
error: GPGME error: Invalid crypto engine
При этом, инет есть, а вот на pacman —sysroot /mnt -Syu пишет Could not resolve host.
Копировать resolv.conf пробовал, толку чет 0

vs220

#
2 года, 12 месяцев назад

Темы:

22

Сообщения:

8090

Участник с: 16 августа 2009

А pacstrap /mnt base не прокатит?

valera_cr

#
2 года, 12 месяцев назад

valera_cr avatar

Темы:

1

Сообщения:

418

Участник с: 12 января 2013

pacman —root /mnt -S glibc

Aivar

#
2 года, 12 месяцев назад

Темы:

4

Сообщения:

6897

Участник с: 17 февраля 2011

Скачать (под live CD/USB, шиндовз и т.д.) и установить не пробовали?

vs220

#
2 года, 12 месяцев назад

Темы:

22

Сообщения:

8090

Участник с: 16 августа 2009

valera_cr пожалуй наиболее правильное решение дал

Xts

#
2 года, 12 месяцев назад

Xts avatar

Темы:

33

Сообщения:

973

Участник с: 13 ноября 2013

vs220
А pacstrap /mnt base не прокатит?

valera_cr
pacman –root /mnt -S glibc

Ругается на кучу локалей, что они есть в файловой системе

Aivar
Скачать (под live CD/USB, шиндовз и т.д.) и установить не пробовали?

Сам пакет есть, поставить проблема почему то

valera_cr

#
2 года, 12 месяцев назад

(отредактировано

2 года, 12 месяцев назад)

valera_cr avatar

Темы:

1

Сообщения:

418

Участник с: 12 января 2013

pacman —noconfirm —root /mnt -S glibc

Xts

#
2 года, 12 месяцев назад

Xts avatar

Темы:

33

Сообщения:

973

Участник с: 13 ноября 2013

valera_cr
pacman –noconfirm –root /mnt -S glibc

Аналогично(

Aivar

#
2 года, 12 месяцев назад

Темы:

4

Сообщения:

6897

Участник с: 17 февраля 2011

С NoExtract в pacman.conf ничего не перемудрили?

Xts

#
2 года, 12 месяцев назад

Xts avatar

Темы:

33

Сообщения:

973

Участник с: 13 ноября 2013

Aivar
С NoExtract в pacman.conf ничего не перемудрили?

Даже не трогал

Понравилась статья? Поделить с друзьями:
  • Error gpg failed to sign the data fatal failed to write commit object
  • Error gostypeau cannot be embedded because of licensing restrictions
  • Error google play not install
  • Error god of war ascension
  • Error gnu stubs 32 h no such file or directory