You are not logged in.

#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)

Offline

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

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
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.

Offline

#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!

Offline

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

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
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

Offline

Board footer

Powered by FluxBB