Using proxychains to do apt-get update in ubuntu 12.04.2
sudo proxychains apt-get updategives following error
ERROR: ld.so: object 'libproxychains.so.3' from LD_PRELOAD cannot be preloaded: ignored.How can I avoid this error?
14 Answers
You must change
export LD_PRELOAD=libproxychains.so.3to
export LD_PRELOAD=/usr/lib/libproxychains.so.3in /usr/bin/proxychains
or use find /usr/lib/ -name libproxychains.so.3 -print to get the right file path.
Although the error goes away when setting
export LD_PRELOAD=/usr/lib/libproxychains.so.3in /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.3if on 64bit
export LD_PRELOAD=/usr/lib/i386-linux-gnu/libproxychains.so.3if on 32bit Ubuntu and derivatives.
In my case,
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3did not work. I also added this line to my .bashrc and refreshed it by source ~/.bashrc
Solution:You need to add/edit it to proxychains by:
sudo gedit /usr/bin/proxychainsif on 32bit Ubuntu and derivatives, replace x86_64-linux-gnu with i386-linux-gnu
You can just add
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3
in .bashrc instead of run proxychains bash in terminal.