You are not logged in.

#1 2024-10-13 19:59:00

mtsdalmolin
Member
Registered: 2024-10-13
Posts: 6

curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

I am having issues with pacman and archlinux. And the main thing is that something is broke in libssl or libcurl, I dont know which one.
So everytime I try to run anything in pacman, I get the error:

pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)

And everytime I try to run curl, it also throws me the same error:
Full error message:

❯ pacman
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
❯ curl
curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)

I have spent some time reading other threads and trying to reinstall pacman, but got stuck trying to remove it from my distro installation.
I tried fixing by doing what people said in these topics:
1. https://bbs.archlinux.org/viewtopic.php?id=292445
2. https://bbs.archlinux.org/viewtopic.php?id=95007
3. https://bbs.archlinux.org/viewtopic.php?id=292911

I am new to archlinux, so I am lost in what else can I do to fix this. I am considering reinstalling my whole system b/c it seems really messed up.

Offline

#2 2024-10-13 20:05:49

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,366
Website

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

What is your output for "pacman -Qs openssl" as well as "pacman -Q openssl"?

Offline

#3 2024-10-13 20:15:02

mtsdalmolin
Member
Registered: 2024-10-13
Posts: 6

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

Same thing:

❯ pacman -Qs openssl
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
❯ pacman -Q openssl
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)

Offline

#4 2024-10-13 20:19:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,425
Website

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

How about this:

ls -d /var/lib/pacman/local/openssl*

This will miss anything else that "provides" openssl, but should be good for a start.

Last edited by Trilby (2024-10-13 20:20:17)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2024-10-13 20:20:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,199

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

You need to use an external pacman (see https://wiki.archlinux.org/title/Pacman … ng_pacman) and fully update the system. This happens because of a partial update.

Offline

#6 2024-10-13 20:24:59

mtsdalmolin
Member
Registered: 2024-10-13
Posts: 6

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

trilby wrote:

How about this:

ls -d /var/lib/pacman/local/openssl*

This will miss anything else that "provides" openssl, but should be good for a start.

Output:

❯ ls -d /var/lib/pacman/local/openssl*
 /var/lib/pacman/local/openssl-3.2.0-1

------

Schimmia wrote:

You need to use an external pacman (see https://wiki.archlinux.org/title/Pacman … ng_pacman) and fully update the system. This happens because of a partial update.

About that, I read that in another topic. I was seeing something about pacman-static or another option.
Do I need to download pacman-static and use it to install partial installed packages? I didn't find out how to download pacman-static without pacman, so I got stuck there.

Offline

#7 2024-10-13 20:46:56

mtsdalmolin
Member
Registered: 2024-10-13
Posts: 6

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

Trying to download pacman-static with git clone, I still get the error:

❯ git clone https://aur.archlinux.org/pacman-static.git
Cloning into 'pacman-static'...
/usr/lib/git-core/git-remote-https: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
fatal: remote helper 'https' aborted session

Everything seems to be associated to openssl. D:

Offline

#8 2024-10-13 21:57:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,425
Website

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

Not everything, but everything that uses ssl, which includes anything that downloads from an https address.  You don't want to try to build pacman-static anyhow - you may download a prebuilt pacman-static though.  But given where your starting from, I suspect booting from a live iso would be better anyways.

Last edited by Trilby (2024-10-13 21:58:50)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2024-10-14 06:44:36

cryptearth
Member
Registered: 2024-02-03
Posts: 1,809

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

as this was a point in another topic: what's your uptime? have you rebooted since the update?

Offline

#10 2024-10-14 23:26:11

mtsdalmolin
Member
Registered: 2024-10-13
Posts: 6

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

I downloaded pacman-static and ran the update/upgrade command.
It tried to install and upgrade packages, but it failed in some kind of unknown trust signatures:

error: http-parser: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/http-parser-2.9.4-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: libvterm: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/libvterm-0.3.3-2-x86_64.pkg.tar.zst 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)
Errors occurred, no packages were upgraded.

How can I proceed from here?

Offline

#11 2024-10-14 23:44:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,199

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

Update archlinux-keyring first

Offline

#12 2024-10-15 01:15:23

mtsdalmolin
Member
Registered: 2024-10-13
Posts: 6

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

This happened:

❯ sudo pmn-static -S archlinux-keyring
warning: archlinux-keyring-20240709-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20240709-2

Total Installed Size:  1.67 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                           [########################################] 100%
(1/1) checking package integrity                                         [########################################] 100%
(1/1) loading package files                                              [########################################] 100%
(1/1) checking for file conflicts                                        [########################################] 100%
:: Processing package changes...
(1/1) reinstalling archlinux-keyring                                     [########################################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
  Skipped: Current root is not booted.
(2/2) Arming ConditionNeedsUpdate...

Tried to update boot by installing linux with:

sudo pmn-static -S linux

And this came out:

❯ sudo pmn-static -S linux
resolving dependencies...
:: There are 3 providers available for initramfs:
:: Repository core
   1) mkinitcpio
:: Repository extra
   2) booster  3) dracut

Enter a number (default=1):
looking for conflicting packages...

Packages (3) mkinitcpio-39.2-2  mkinitcpio-busybox-1.36.1-1  linux-6.11.3.arch1-1

Total Installed Size:  137.84 MiB

:: Proceed with installation? [Y/n] Y
(3/3) checking keys in keyring                                           [########################################] 100%
(3/3) checking package integrity                                         [########################################] 100%
(3/3) loading package files                                              [########################################] 100%
(3/3) checking for file conflicts                                        [########################################] 100%
error: failed to commit transaction (conflicting files)
mkinitcpio: /usr/lib/initcpio/hooks/encrypt exists in filesystem (owned by cryptsetup)
mkinitcpio: /usr/lib/initcpio/hooks/udev exists in filesystem (owned by systemd)
mkinitcpio: /usr/lib/initcpio/install/encrypt exists in filesystem (owned by cryptsetup)
mkinitcpio: /usr/lib/initcpio/install/sd-encrypt exists in filesystem (owned by cryptsetup)
mkinitcpio: /usr/lib/initcpio/install/systemd exists in filesystem (owned by systemd)
mkinitcpio: /usr/lib/initcpio/install/udev exists in filesystem (owned by systemd)
Errors occurred, no packages were upgraded.

Offline

#13 2024-10-15 01:33:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,503

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

mayhaps sudo pmn-static -Syu archlinux-keyring   ?

Edit:  After Schimmia's response, I guess it should be:

sudo pmn-static -Sy archlinux-keyring
sudo pmn-static -Su

Last edited by ewaller (2024-10-15 02:16:01)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#14 2024-10-15 01:49:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,199

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

So you're trying to do more partial updates, the same thing that got you in this mess to begin with. archlinux-keyring is a special case, but don't just update other things (like the kernel and it's deps) without updating the entire system. You're just digging the hole deeper doing that.

I'm guessing gpg is broken, too, the post_install didn't run correctly in that output. What does `pacman-key --populate archlinux` say?

It really will be easier to just boot the ISO and use pacman from there with the --root option.

Last edited by Scimmia (2024-10-15 02:22:20)

Offline

#15 2024-10-15 06:46:50

cryptearth
Member
Registered: 2024-02-03
Posts: 1,809

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

Scimmia wrote:

It really will be easier to just boot the ISO and use pacman from there with the --root option.

according to manpage shouldn't that be --sysroot rather than just --root?

Offline

#16 2024-10-15 07:09:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,349

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

--sysroot chroots into the target, probably not a good plan when libssl is broken (because several target binaries will fail)
--root however more or less mandates --cachedir if you want to update more than some few MB

Offline

#17 2025-02-12 06:52:38

lldelisle
Member
Registered: 2025-02-12
Posts: 4

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

Hello,
I have the same issue but the reason why I did a partial update is because I don't have enough space on '/'. I could follow your instructions and installed pacman-static but when I ran -Syu after downloading all packages, checking integrity, checking for file conflicts I get:

Partition / top full...

I identified packages I could uninstall to save space but when I try to remove them with `pacman-static -Rsc` I get:

error: hook /usr/share/libalpm/hooks/gvfsd.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/glib-compile-schemas.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk4-querymodules.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/ghc-unregister.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-hwdb.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/40-update-ca-trust.hook line 5: invalid value Path
error: hook /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/accounts-daemon-restart.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-sysctl.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-udev-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/90-update-appstream-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-update.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/vimdoc.hook line 5: invalid value Path
error: hook /usr/share/libalpm/hooks/texinfo-remove.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-catalog.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/ghc-register.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/texinfo-install.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-tmpfiles.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/detect-old-perl-modules.hook line 4: invalid value Path
error: hook /usr/share/libalpm/hooks/fontconfig.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-update-icon-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/update-desktop-database.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gio-querymodules-32.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/60-depmod.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gdk-pixbuf-query-loaders.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-binfmt.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/90-mkinitcpio-install.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/70-mktexlsr.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-update-mime-database.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/20-systemd-sysusers.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/dconf-update.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/reload-lunii-udev-rule.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gio-querymodules.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/update-vlc-plugin-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/dbus-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/40-fontconfig-config.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/73-texlive-updmap.hook line 2: invalid value Path
error: failed to commit transaction (failed to run transaction hooks)

Thanks for your advice

Last edited by lldelisle (2025-02-12 08:17:20)

Offline

#18 2025-02-12 07:19:19

cryptearth
Member
Registered: 2024-02-03
Posts: 1,809

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

have you tried to clear the cache by

pacman -Sc

? should already give you some space
if not on its own mountpoint also check for old big logs - could also give a few valuable inodes

Offline

#19 2025-02-12 07:55:55

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,349

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

Please don't hijack threads and use [code][/code] tags, the bbs predates markdown by your age. Edit your post in this regard.

"invalid value Path" means you're using a version of pacman(-static) that's > 5 years old, maybe don't.

Offline

#20 2025-02-12 08:23:21

lldelisle
Member
Registered: 2025-02-12
Posts: 4

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

seth wrote:

Please don't hijack threads

Sorry I felt like it could be a continuous as the error was the same and what you wrote was making sense to solve my issue.

seth wrote:

and use [code][/code] tags, the bbs predates markdown by your age. Edit your post in this regard.

Done

seth wrote:

"invalid value Path" means you're using a version of pacman(-static) that's > 5 years old, maybe don't.

Indeed pacman v5.1.3. The whole story is that I reopened my laptop I had not touched since long and I wanted to upgrade for security reasons but putting back to date so many packages is challenging given the space left on '/'.

Offline

#21 2025-02-12 08:33:54

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,349

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

You'll probably want to update/fix it offline w/ a current version of the install iso (or you'll run into keyring issues next)
"pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg …" and as cryptearth suggested, start by cleaning the cache.
"-Rsc" is super-"dangerous" because of the cascade - you can wipe the entire system this way.

I'd rather spend a moment check what humongous packages one maybe does not need.
https://bbs.archlinux.org/viewtopic.php … 5#p2214315 might help you here.

Offline

#22 2025-02-12 08:53:22

lldelisle
Member
Registered: 2025-02-12
Posts: 4

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

cryptearth wrote:

have you tried to clear the cache by

pacman -Sc

? should already give you some space
if not on its own mountpoint also check for old big logs - could also give a few valuable inodes

I have tried this: clear the cache and then run 

pacman-static -Syu

but this is not sufficient.

I was wondering if there was a way to 1. clean the cache 2. run

pacman-static -Syu

but asking pacman to store downloads in '/home' for example so there is enough space to install the packages.

Offline

#23 2025-02-12 08:54:53

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,349

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

See the --cachedir parameter, the intallation will still be on "/", though.

Offline

#24 2025-02-12 08:57:45

lldelisle
Member
Registered: 2025-02-12
Posts: 4

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

Thanks Seth, sorry I missed your answer while writting my post. To remove big packages you would recommand simply

pacman-static -R mypackage

?

Offline

#25 2025-02-12 09:10:16

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,349

Re: curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found

-Rs is fine, only -c is "dangerous" in that sense,

Offline

Board footer

Powered by FluxBB