proxychains LD_PRELOAD cannot be preloaded

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.