[ILUGC] Re: post upgrade to Ubuntu 22.04 - curl error - libldap_r-2.4.so.2 cannot open shared object file.

  • From: M K Saravanan <mksarav@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx
  • Date: Thu, 7 Sep 2023 18:24:52 +0800

Uninstalled curl.
Made sure curl is not there anywhere in the system.
manually downloaded curl deb and extracted.
Ran the binary and getting this error:

$ ./curl -V
./curl: error while loading shared libraries: libheimntlm.so.0: cannot open
shared object file: No such file or directory

-- mks --

On Thu, 7 Sept 2023 at 12:30, Baskar Selvaraj <baskar@xxxxxxxxxxxx> wrote:

On Thu, Sep 7, 2023 at 8:17 AM M K Saravanan <mksarav@xxxxxxxxx> wrote:

tried executing the attached 'curl' binary in both 20.04 and 22.04.
It works charmly in 22.04

library@digimat:~$ ./curl -V
curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2
zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0
(+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3
OpenLDAP/2.5.16
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps
ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps
telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN
IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP
UnixSockets zstd

library@digimat:~$ cat /etc/os-release
PRETTY_NAMEÿbuntu 22.04.3 LTS"
NAMEÿbuntu"
VERSION_IDò2.04"
VERSIONò2.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAMEúmmy
IDûuntu
ID_LIKEÞbian
HOME_URLÿttps://www.ubuntu.com/"
SUPPORT_URLÿttps://help.ubuntu.com/"
BUG_REPORT_URLÿttps://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URLÿ> 
https://www.ubuntu.com/legal/terms-and-policies/privacy-policy";
UBUNTU_CODENAMEúmmy
library@digimat:~$

Hence it can be confirmed, the installed binary is from 'ubuntu 22.04
repo' only.

When tried executing in 20.04,

root@localhost:~# ./curl -V
./curl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not
found (required by ./curl)
./curl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not
found (required by ./curl)

root@localhost:~# cat /etc/os-release
NAMEÿbuntu"
VERSIONò0.04.6 LTS (Focal Fossa)"
IDûuntu
ID_LIKEÞbian
PRETTY_NAMEÿbuntu 20.04.6 LTS"
VERSION_IDò0.04"
HOME_URLÿttps://www.ubuntu.com/"
SUPPORT_URLÿttps://help.ubuntu.com/"
BUG_REPORT_URLÿttps://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URLÿ> 
https://www.ubuntu.com/legal/terms-and-policies/privacy-policy";
VERSION_CODENAMEÿcal
UBUNTU_CODENAMEÿcal

Looks like 'curl' is compiled and linked using GLIBC_2.33/2.34 which
is not available in ubuntu 20.04.  So, even if you resolve all the
dependencies, still it won't work.

I request you to purge the 'curl' package and check for any existing
instance and if found clean them all.

Now, instead of installing the 'curl' package, just download and
extract manually and try to run it.

$apt download curl

Then extract it manually and try running the binary.

S. Baskar
---
Mailing List Guidelines: https://ilugc.in/mailing-list-guidelines
Web: http://ilugc.in/
Internet Relay Chat: #ilugc on libera.chat



---
Mailing List Guidelines: https://ilugc.in/mailing-list-guidelines
Web: http://ilugc.in/
Internet Relay Chat: #ilugc on libera.chat

Other related posts: