Skip to content

Pacman libcrypto.so.1.1 errors

[Solved] Hi, I'm currently getting an error pacman: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory lately after doing a pacman -Ssy. I bet that it's related to this but the problem is that I do not know how to fix it. Also how caused it? Bad update mirrors?

[Solution]

As pointed out by /u/igorpetrov, only thing needed to do is to install/reinstall openssl. So what you need to do is to boot into a live environment, mount the system drive using mount /dev/sdx /mnt where x is your drive letter and number, connect to the internet, and do pacstrap -i openssl. Afterwards to check that it's working, chroot into the drive and do something like pacman --help.

Edited 25 Apr 2017. We only hold this version.

6 points15 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
6 · 100% up
Kind
Text
ID
67ef10

Author

3
posts
19
comments
0
media
View profile

28 comments

tar doesn't need openssl, so you (I) can use that to instantiate a working version of openssl. No need for a live cd.

# see what terrible and stupid thing I just did (openssl 1.0.2-k to 1.1.0.e without updating everything else)
tail /var/log/pacman.log

# remove the newly installed openssl files by listing all the files in the packages tar and removing them (taking care not to rm directories)
tar -tf /var/cache/pacman/pkg/openssl-1.1.0.e-1-x86_64.pkg.tar.xz | #list all the files
sed s:^:/:| # put the leading / on all entries
grep -v /$ | # remove folders from list (skip if it ends with /)
xargs rm # remove all the files

# go to root and extract the old package -- like nothing ever happend
cd / 
tar -xf /var/cache/pacman/pkg/openssl-1.0.2.k-1-x86_64.pkg.tar.xz

# update everything the right way
# must include openssl b/c pacman's db thinks we already have the new one
pacman -Syu openssl

(edit: code format)

9 points

Thanks for this! Updated curl alone and got this issue.

2 points

I know this is a few months old but a big fat THANK YOU from me too!

1 points

thank you (also use su if sudo does not work without openssl)

i just deleted openssl for some reason and this saved me

1 points

I've got pacman work again via Arch ISO and flash drive. Also at least one Steam game (GRID) broken because of that new opanssl. Not investigated yet.

2 points

Hi thank you for your comment! Can you post what you did exactly to fix the problem?

1 points

The steps are:

  • boot arch iso

  • mount root partition to virtual drive (same as during installation):

$ mount /mnt /dev/sdaX

  • install openssl to mounted drive:

$ pacstrap -i /mnt openssl

  • 'chroot' into root partition and check pacman works:

$ arch-chroot /mnt

For example $ pacman --help should work.

3 points

Like the linked forum says, there was some issue yesterday with the mirrors syncing correctly. I saw the same issue last evening. Change the mirror you are using to something that is more current. Then find a way to get pacman working. You may use wget / curl on xfercommand if one of them was compiled using gnutls.

Tun a new pacman -Syu. Atleast yesterday, the issue always fixed itself within 30 minutes and a fresh update

1 points

What's a good mirror to use? Also, can I just do pacman -Syu using a live usb? Like mount the system and do pacman -Syu?

0 points

I use a German mirror, I think it is either leaseweb or rwth Aachen. Mine did finish the sync yesterday, so it should be fine. Else there's the mirror list status page on the website

And yes, you can mount on a live USB and update as well.

1 points

Thanks a lot for this post. I was going through the same issue and fixed it this way.

1 points

seems like /usr/lib/libcrypto.so -> libcrypto.so.1.1 instead of /usr/lib/libcrypto.so -> /usr/lib/libcrypto.so.1.1 so just sudo ln -sf /usr/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so

-1 points

Thanks for the help, but I tried it out and pacman would still give me the same error.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.