You are not logged in.

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

beelzebot
Member
Registered: 2021-11-26
Posts: 3

[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.

I need help.

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

Offline

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

beelzebot
Member
Registered: 2021-11-26
Posts: 3

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)

Offline

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

loqs
Member
Registered: 2014-03-06
Posts: 14,870

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

Follow Pacman#Pacman_crashes_during_an_upgrade
Replace step 4 with

pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -Syu gnupg

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

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

Offline

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

seth
Member
Registered: 2012-09-03
Posts: 29,723

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

sudo pacman -Sy archlinux-keyring

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?

Offline

#5 2021-11-27 08:44:58

beelzebot
Member
Registered: 2021-11-26
Posts: 3

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

seth wrote:
sudo pacman -Sy archlinux-keyring

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?

This: sudo pacman -Sy archlinux-keyring has fixed the problem. I thought I did that already when I researched the problem but apparently not.

Thank you very much!

Just FYI, it was a partial update yesterday after I did pacman -S gnupg without really thinking, just doing what was said in that other post. After the downgrade everything was back to how it was before.
Come to think of it, it  seems to me the archlinux-keyring installation you suggested is also a partial update?

Offline

#6 2021-11-27 08:50:53

seth
Member
Registered: 2012-09-03
Posts: 29,723

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

Come to think of it, it  seems to me the archlinux-keyring installation you suggested is also a partial update?

Yes, but you were told so and I'm above the legally allowed to conduct partial updates tongue

(It's actually even mentioned in the wiki and while partial updates are usually bad, they can be permissable and even sometimes required - but you need to know what and why you're doing. In this case: working around not having updated in quite a while)

Offline

#7 2022-01-09 16:53:37

d.ALT
Member
Registered: 2019-05-10
Posts: 49

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

loqs wrote:

Replace step 4 with

pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -Syu gnupg

Thank you!! This saved my installation!!

Offline

#8 2022-01-09 23:42:07

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 3,962

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

Closing this old solved topic.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Online

Board footer

Powered by FluxBB