After upgrading to Ubuntu 22.04 when I run the curl command it's giving this error:
/usr/bin/curl: error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory
$ which curl
/usr/bin/curl
Before the upgrade, it was working fine.
I removed the curl using apt and then reinstalled it again, but still getting same error. Any idea how to resolve this issue?
with regards, Saravanan
curl --version. On 22.04,curlshould depend (vialibcurl4) onlibldap-2.5-0 (>= 2.5.4)afaik – steeldriver Jan 31 '23 at 14:39sudo apt update ; sudo apt autoremove ; sudo apt clean ; sudo apt-get check ; sudo apt full-upgrade curl libcurl4 --reinstall -y– Yuri Sucupira Feb 03 '23 at 21:45