You are not logged in.

#1 2024-02-01 11:49:04

mwooper
Member
Registered: 2023-09-22
Posts: 66

[SOLVED]error: gpgme error: invalid crypto engine

So as I was updating my system after long time, I ran

sudo pacman -Syyu

And during updating the packages the update session got core dumped and then the entirety of the system crashed (and I wasn't able jump to other ttys using ctrl+alt+(f2-f6)
Then I chrooted using a live disk after mounting the partitions and tried to ran pacman -Syu and the it gave to following error for all the packages
error: failed to synchronize all databases (unable to lock database)
So the I deleted the lock file /var/lib/pacman/db.lck

And the after retrying "pacman -Syu" I got this error

"error: gpgme error: invalid crypto engine"

And before I ran the instructions on
https://wiki.archlinux.org/title/Pacman … an_upgrade

I check status of installed files like gnupg using "pacman -Qi gnupg"
It gave this output
https://imgur.com/TUYa86O

After that I decided to check
/var/log/pacman.log as my cpu and ram do act up sometimes
https://imgur.com/CMmxCNg

And I then observed all the files updated after firefox (not including firefox) had similar output (pacman -Qi package_name), so my guess is that during update my system had some problem with cpu or ram and all the packages installed after
firefox weren't installed properly

Other packages that weren't updated or were updated before firefox-developer-editon are healthy and work fine

And as I never encountered a problem of such degree I have no idea what to do.

Please help !!

Last edited by mwooper (2024-02-20 04:51:04)

Offline

#2 2024-02-01 13:29:42

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

Re: [SOLVED]error: gpgme error: invalid crypto engine


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2024-02-01 19:57:50

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: [SOLVED]error: gpgme error: invalid crypto engine

Its a broken link

Offline

#4 2024-02-01 21:06:49

seth
Member
Registered: 2012-09-03
Posts: 61,650

Re: [SOLVED]error: gpgme error: invalid crypto engine

sudo pacman -Syyu

When your system works again, please take a moment to consult the pacman manpage on what the second "y" does and why the unconditional use is a seriously bad idea.

Please don't post pictures of text, post the text.

1. Boot the install iso
2. Mount the root partition at /mnt
3. Conditionally the boot partition and /mnt/boot
4. Update the system

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

PAY ATTENTION TO ERRORS!
5. Check the system integrity

LC_ALL=C pacman --root=/mnt -Qkk 2>&1 | grep -v ', 0 altered files' > /tmp/howbadisit.txt
cat /tmp/howbadisit.txt | curl -F 'file=@-' 0x0.st # you can link that url here
less /tmp/howbadisit.txt # and look at the file yourself

You might have to explcitly re-install a couple of packages
PAY ATTENTION TO ERRORS!
6. reboot
7. profit

Online

#5 2024-02-02 10:08:50

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: [SOLVED]error: gpgme error: invalid crypto engine

Thanks I'll keep those suggestions in mind and as tomorrow is my last exam I'll try your solution tomorrow

Offline

#6 2024-02-02 11:22:23

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: [SOLVED]error: gpgme error: invalid crypto engine

So I tried
pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -Syu

But it gave me exists in filesystem error

So should I proceed with --overwrite ?

Offline

#7 2024-02-02 12:11:07

loqs
Member
Registered: 2014-03-06
Posts: 18,354

Re: [SOLVED]error: gpgme error: invalid crypto engine

mwooper wrote:

So I tried
pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -Syu

But it gave me exists in filesystem error

So should I proceed with --overwrite ?

https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#8 2024-02-02 13:11:36

seth
Member
Registered: 2012-09-03
Posts: 61,650

Re: [SOLVED]error: gpgme error: invalid crypto engine

You probably lost some of the package database, post /tmp/howbadisit.txt first

Online

#9 2024-02-03 07:10:07

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: [SOLVED]error: gpgme error: invalid crypto engine

So this is the link for howbadisit.txt
http://0x0.st/HD18.txt

Offline

#10 2024-02-03 08:52:25

seth
Member
Registered: 2012-09-03
Posts: 61,650

Re: [SOLVED]error: gpgme error: invalid crypto engine

Because you manually transcripted it and don't know the difference between "1" and "l" tongue
The correct link is https://0x0.st/HDl8.txt
Please remove the text mass you posted here.
You also forgot the grep, so there's a lot of irrelevant data.

Filtered file ==> http://0x0.st/HDlE.txt

gimp: no mtree file
gnupg: no mtree file
graphicsmagick: no mtree file
gst-plugins-bad-libs: no mtree file
gst-plugins-base: no mtree file
gst-plugins-base-libs: no mtree file
gst-plugins-good: no mtree file
gstreamer: no mtree file
imlib2: no mtree file
inxi: no mtree file
jupyter-notebook: no mtree file
jupyterlab: no mtree file
level-zero-loader: no mtree file
libavif: no mtree file
libcamera: no mtree file
libcamera-ipa: no mtree file
libheif: no mtree file
libimobiledevice: no mtree file
libpaper: no mtree file
libpipewire: no mtree file
libvips: no mtree file
lilv: no mtree file
orc: no mtree file
python-jsonschema: no mtree file
python-markupsafe: no mtree file
python-nest-asyncio: no mtree file
python-overrides: no mtree file
python-referencing: no mtree file
python-rpds-py: no mtree file
python-wcwidth: no mtree file
serd: no mtree file
suitesparse: no mtree file
taglib: no mtree file

Those all lost their database and have to be installed w/ the --dbonly parameter first before you attempt the general update.

Edit:

warning: mkinitcpio: /mnt/usr/bin/lsinitcpio (No such file or directory)

mkinitcpio is trashed, so building the initramfs might fail on an update, make sure to in doubt explicitly re-install that (first)

Last edited by seth (2024-02-03 08:55:06)

Online

#11 2024-02-03 13:00:18

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: [SOLVED]error: gpgme error: invalid crypto engine

[this post was restored as suggested by V1del]

Problem : During the re-installation of broken packages, I was still getting "is empty, not checked" error.

Solution: All of these (other than libpipewire) got resolved by re-reinstalling all of those packages all over again.

Last edited by mwooper (2024-02-05 11:35:59)

Offline

#12 2024-02-03 13:45:24

seth
Member
Registered: 2012-09-03
Posts: 61,650

Re: [SOLVED]error: gpgme error: invalid crypto engine

Deleted by what?
Did you resolve the short libs?

Re-run

LC_ALL=C pacman -Qkk 2>&1 | grep -v ', 0 altered files' > /tmp/howbadisit.txt

and check the remaining errors.
Everything in /usr/bin and /usr/lib is most likely a problem and you need to re-install that package.
For the rest you've to figure case-by-case whether there's a problem (eg. many config files in /etc can perfectly be assumed to be locally altered)

Online

#13 2024-02-03 14:14:28

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: [SOLVED]error: gpgme error: invalid crypto engine

(Sorry for the last reply it was a query that I had resolved on my own and I don't know how to delete replies on this platform,<this is my first post here>)

Thank you very much, for your help. I could have not done this without your help and guidance.

There is just a small problem that persists
I almost always get this prompt when installing any package:
"ldconfig: File /usr/lib/libpipewire-0.3.so.0.1001.0 is empty, not checked."

Plus can you also share your thoughts on why this all of this happened?

How plausible is that it can happen on a healthy system running arch or was it just because of my faulty system hardware?, as I am planning on buying a new laptop in near future (, ps I am a college student who mostly uses his laptop for coding, game development, online-meetings and watching anime)

Last edited by mwooper (2024-02-03 14:22:37)

Offline

#14 2024-02-03 14:33:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,119

Re: [SOLVED]error: gpgme error: invalid crypto engine

Please in general don't blank your posts otherwise relevant context gets lost and it might help other people, you can just ammend that you've found the solution.

That message means that file is broken, remove it and reinstall libpipewire.

None of this is generally gonna happen an a "healthy install" and these kind of corruptions most often point to hardware failure in some shape or form (most often disk, RAM can also play a role if that is faulty). FWIW session crashes from an update could in recent times (but that would mostly just be xorg dying) result from the systemd udev trigger that reinitiates all devices, and if some component or driver reacts allergic to that you could have session crashes. Since I consider this mostly useless and the chance for things breaking way to high, you can mitigate that by creating the file /etc/systemd/do-not-udevadm-trigger-on-update which will be read by the relevant system hook and not retrigger all devices. See https://bugs.archlinux.org/task/77789 for more info

Offline

#15 2024-02-05 11:24:04

mwooper
Member
Registered: 2023-09-22
Posts: 66

Re: [SOLVED]error: gpgme error: invalid crypto engine

Thank you too all who helped me !!
All of my problems are now resolved,
the problem was caused because of my faulty RAM.

Offline

Board footer

Powered by FluxBB