1

To utilize the proxy on my Ubuntu system, I required the installation of proxychains. Here are the steps I took:

  1. sudo apt-get install proxychains
    
  2. sudo vim /etc/proxychains.conf
    ...
    [ProxyList]
    socks5 192.xxx.xxx.xxx 1080
    
  3. sudo vim /usr/bin/proxychains
    ...
    #export LD_PRELOAD=libproxychains.so.3
    export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3
    

Then I run proxychains curl www.google.com, the proxy doesn't work but there's no error. When I run sudo proxychains curl www.google.com, there's the error:

ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libproxychains.so.3' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libproxychains.so.3' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

How can I fix this issue and run proxychains successfully? Thanks a lot.

2 Answers 2

-1

Try

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

this is the correct libraryname on Ubuntu (it reports "cannot open shared object file")

1
  • I agree, the required shared library is libproxychains.so.3.0.0. However, the LD_PRELOAD variable requires a Link to shared library type.
    – tao zhang
    Commented Jun 8, 2023 at 2:46
-1

I was able to solve the issue by identifying a problem with my 'curl'. After reinstalling it, everything is running smoothly now.

1
  • How was curl relevant to the issue, and what was the problem? What did you reinstall and why did that resolve the issue?
    – Kusalananda
    Commented May 20 at 8:08

Not the answer you're looking for? Browse other questions tagged .