Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] error: curl: error while loading shared libraries: liblber-2.4.so.2: cannot open shared object file: No such file or directory #1098

Open
irnutsmurt opened this issue Nov 21, 2023 · 7 comments
Labels

Comments

@irnutsmurt
Copy link

What happened?

Steps to reproduce:

  1. Upgrade from Ubuntu server 20.04 to Ubuntu server 22.04
  2. box install rtorrent
  3. error: curl: error while loading shared libraries: liblber-2.4.so.2: cannot open shared object file: No such file or directory

Expected results: Upgrade it to liblber-2.5 or install the liblber-2.4.

so I was able to get around this issue by installing the old package using this
sudo wget http://http.us.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.47+dfsg-3+deb10u7_amd64.deb

sudo apt install ./libldap-2.4-2_2.4.47+dfsg-3+deb10u7_amd64.deb

The stuff about curl that I read earlier I followed and it didn't seem to fix the issue.

Swizzin commit

9dc0c50

What OS are you using?

Ubuntu 22.04 (Jammy)

What architecture is your OS?

amd64

Relevant logs and output

No response

@irnutsmurt irnutsmurt added the bug label Nov 21, 2023
@irnutsmurt
Copy link
Author

irnutsmurt commented Nov 21, 2023

Added logs just to show what i got:
[Tue Nov 21 12:05:00] ... Building c-ares from source rm: cannot remove 'CMakeCache.txt': No such file or directory cmake: error while loading shared libraries: liblber-2.4.so.2: cannot open shared object file: No such file or directory [Tue Nov 21 12:05:01] ERROR There was an error configuring c-ares! Please check the log for more info [Tue Nov 21 12:05:01] Please consult the above and/or check the log (less -R +G /root/logs/swizzin.log)

@stickz
Copy link
Contributor

stickz commented Nov 22, 2023

Please run box update to install the latest version of swizzin.

@irnutsmurt
Copy link
Author

That was the first thing I tried. I made sure to try as many basic troubleshooting steps as possible.

@stickz
Copy link
Contributor

stickz commented Nov 22, 2023

Try to run box upgrade curl. Does it pass or fail?

@irnutsmurt
Copy link
Author

It also failed with the same error message.

@irnutsmurt
Copy link
Author

I already fixed it by Installing the old package using this
sudo wget http://http.us.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.47+dfsg-3+deb10u7_amd64.deb

sudo apt install ./libldap-2.4-2_2.4.47+dfsg-3+deb10u7_amd64.deb

@stickz
Copy link
Contributor

stickz commented Nov 22, 2023

We can't use this fix for swizzin. Could you provide the output of two commands?
ls /usr/lib/x86_64-linux-gnu | grep lber
stat /usr/lib/x86_64-linux-gnu/liblber.so | grep File

stickz added a commit to stickz/swizzin that referenced this issue Feb 17, 2024
This commit repairs cmake installations for Focal to Jammy upgrades. It installs the focal version of libldap for amd64. Closes swizzin#1098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants