Ubuntu: proxychains LD_PRELOAD cannot be preloaded



Question:

Using proxychains to do apt-get update in ubuntu 12.04.2

sudo proxychains  apt-get update  

gives following error

ERROR: ld.so: object 'libproxychains.so.3' from LD_PRELOAD cannot be preloaded: ignored.  

How can I avoid this error?


Solution:1

You must change

export LD_PRELOAD=libproxychains.so.3  

to

export LD_PRELOAD=/usr/lib/libproxychains.so.3  

in /usr/bin/proxychains

or use find /usr/lib/ -name libproxychains.so.3 -print to get the right file path.


Solution:2

Although the error goes away when setting

export LD_PRELOAD=/usr/lib/libproxychains.so.3  

in /usr/bin/proxychains there is no such file in that location on Ubuntu. the link resides in /usr/lib/x86_64-linux-gnu/ on a 64bit system and /usr/lib/i386-linux-gnu/ (i think) on a 32bit system. The link points to the file libproxychains.so.3.0.0 in the same directory. The change should be

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3  

if on 64bit

export LD_PRELOAD=/usr/lib/i386-linux-gnu/libproxychains.so.3  

if on 32bit Ubuntu and derivatives.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »