ImportError: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory

Issue: ImportError: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory
Solution: The latest version of your OS may be missing the libldap_r-2.4.so.2 and your software depends on it. Install libldap_r-2.4.so.2 manually.

Head over to http://security.ubuntu.com/ubuntu/pool/main/o/openldap/

sudo wget http://security.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-2.4-2-dbg_2.4.42+dfsg-2ubuntu3.13_amd64.deb	
sudo apt install libldap-2.4-2-dbg_2.4.42+dfsg-2ubuntu3.13_amd64.deb

OR

Head over to http://http.us.debian.org/debian/pool/main/o/openldap/

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

Leave a Reply