You are not logged in.

#1 2022-11-10 06:27:16

Bh289
Member
Registered: 2022-06-01
Posts: 3

[SOLVED] Error while loading shared libraries: libssl.so.3:

error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
after updating curl i am unable to work with  pacman  and  aurhelper   .I tried to downgrade the package but showing the same error  also my network manager is down and my gui is unable to link anything   
here is the pacman  log
2022-11-10T00:29:08+0530] [PACMAN] Running 'pacman -Syy curl'
[2022-11-10T00:29:08+0530] [PACMAN] synchronizing package lists
[2022-11-10T00:29:12+0530] [ALPM] transaction started
[2022-11-10T00:29:12+0530] [ALPM] upgraded curl (7.85.0-2 -> 7.86.0-3)
[2022-11-10T00:29:12+0530] [ALPM] transaction completed

Last edited by Bh289 (2022-11-11 15:07:04)

Offline

#2 2022-11-10 06:37:41

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

Re: [SOLVED] Error while loading shared libraries: libssl.so.3:

Running -Syy $package is a recipe for breakage. Don't do it: partial upgrades are not supported here: https://wiki.archlinux.org/index.php/Sy … nsupported


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-11-10 07:24:37

Bh289
Member
Registered: 2022-06-01
Posts: 3

Re: [SOLVED] Error while loading shared libraries: libssl.so.3:

how can i   solve this now ?
I dont have access to pacman    and all  sollutions   require pacman to continue

Offline

#4 2022-11-10 07:35:46

seth
Member
Registered: 2012-09-03
Posts: 51,029

Offline

#5 2022-11-11 00:37:39

insecury
Member
Registered: 2022-11-11
Posts: 1

Re: [SOLVED] Error while loading shared libraries: libssl.so.3:

I don't know why exactly this happened to me. I must have accidentally closed a pacman installation/upgrade procedure.

Seems the issue is that curl was upgraded, pacman depends on curl, openssl wasn't upgraded yet.

The workaround/fix was to downgrade curl package by looking in my /var/cache/pacman for older curl packages.
```
ls /var/cache/pacman/pkg/curl-*-x86_64.pkg.tar.zst
# picking a version that is probably not affected
cd /
sudo bsdtar xvf /var/cache/pacman/pkg/curl-7.85.0-2-x86_64.pkg.tar.zst
# should work again
pacman --help
# if you have no network functional
sudo systemctl reboot
```

Offline

#6 2022-11-11 02:11:38

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] Error while loading shared libraries: libssl.so.3:

insecury wrote:
cd /
sudo bsdtar xvf /var/cache/pacman/pkg/curl-7.85.0-2-x86_64.pkg.tar.zst

It would be better to use

pacman -U /var/cache/packman/pkg/curl-7.85.0-2-x86_64.pkg.tar.zst

As it is, you are going to run into issues when you come to upgrade the system properly because pacman has inaccurate information about which packages you've installed.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2022-11-11 15:14:12

Bh289
Member
Registered: 2022-06-01
Posts: 3

Re: [SOLVED] Error while loading shared libraries: libssl.so.3:

extract  curl package downloaded from net and extract it  copy libssl and libcrypt  file  from package/usr/lib and paste in  /usr/lib
then pacman starts   working
then  run command
sudo pacman -Syu --overwrite /usr/lib/libcrypto.so.3 --overwrite  /usr/lib/libssl.so.3


then restart the machine

Offline

#8 2022-11-11 15:32:03

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

Re: [SOLVED] Error while loading shared libraries: libssl.so.3:

cfr wrote:

It would be better to use [pacman]

It would be, but it's not an option when pacman can't run.  Even if the pacman operation you intend to do doesn't require a download, the pacman binary is linked to curl and will not run without it.  This would be different if pacman `dlopen`ed the curl libs only as needed, but this approach is quited rare in the *nix world.  (and I'm not advocating for it, I'm glad it's rare overall).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2023-03-09 00:56:44

xerus
Member
Registered: 2021-05-11
Posts: 34

Re: [SOLVED] Error while loading shared libraries: libssl.so.3:

Hint for future readers as I lost over an hour on this myself: Download pacman-static on all your machines and use it in such situations to escape the hen and egg problem of being unable to fix pacman without a working pacman.

Offline

#10 2023-03-09 02:09:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [SOLVED] Error while loading shared libraries: libssl.so.3:

xerus wrote:

Hint for future readers as I lost over an hour on this myself: Download pacman-static on all your machines and use it in such situations to escape the hen and egg problem of being unable to fix pacman without a working pacman.

Or just don't do partial updates and avoid breaking it in the first place.

Online

Board footer

Powered by FluxBB