Configuration de proxychains

Solved
pacorabano Posted messages 203 Registration date   Status Membre Last intervention   -  
pacorabano Posted messages 203 Registration date   Status Membre Last intervention   -

Hello

I have installed proxychains on my deepin distribution.

I have this error that I can't resolve:

 linux@linux-PC:~$ proxychains firefox www.bing.com [proxychains] config file found: /etc/proxychains.conf [proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4 proxychains can't load process....: No such file or directory

Thank you

15 réponses

mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 

Hello,

Short answer

Since deepin is based on APT, you should prioritize that to install software, to avoid dependency issues. So did you use this command to install proxychains?

sudo apt update sudo apt install proxychains4

Maybe you accidentally installed the proxychains package instead of proxychains4? To check, look at the output of:

dpkg -l | grep proxychains

Detailed answer

When you encounter this kind of error you can install apt-file to see which package provides a given file.

sudo apt update sudo apt install apt-file sudo apt-file update apt-file search libproxychains.so.4

Under Debian, you get:

(mando@cenedra) (~) $ apt-file search libproxychains.so.4 libproxychains4: /usr/lib/x86_64-linux-gnu/libproxychains.so.4

The fact that there is a "4" at the end of the package name suggests that the package providing the application (here proxychains) potentially exists in several versions, or at least, that the application package is called proxychains4 rather than proxychains. Let's verify with:

apt search proxychain

Under Debian, you get:

(mando@cenedra) (~) $ apt search proxychain Sorting... Done Full text search... Done libproxychains-dev/stable 3.1-9 amd64 proxy chains -- shared library (development) libproxychains3/stable 3.1-9 amd64 proxy chains -- shared library (runtime) libproxychains4/stable 4.16-2 amd64 runtime shared library for proxychains-ng proxychains/stable 3.1-9 all proxy chains – redirects connections through proxy servers proxychains4/stable 4.16-2 amd64 redirect connections through socks/http proxies (proxychains-ng)

We can see that there are indeed two packages coexisting: proxychains (which, given the version number, seems to rely on libproxychains3, and proxychains4, which seems to rely on libproxychains4). Let's check that proxychains4 indeed relies on libproxychains4:

apt show proxychains4

Under Debian, you get:

(mando@cenedra) (~) $ apt show proxychains4 ... Depends: libproxychains4 (= 4.16-2), libc6 (>= 2.14) ...

It shows that proxychains4 indeed depends on libproxychains4.

In conclusion, since you seem to want to use this version of proxychains, it is indeed this package that should be installed. Another interesting command is:

apt-file search proxychains | grep bin/proxychains

It allows you to search for packages that include proxychains (in their name or within their files), keeping only the results containing bin/proxychains (thus, an executable whose name starts with proxychains)

(mando@cenedra) (~) $ apt-file search proxychains | grep bin/proxychains proxychains: /usr/bin/proxychains3 proxychains4: /usr/bin/proxychains4 proxychains4: /usr/bin/proxychains4-daemon

Here we see that the package proxychains provides the command proxychains3 and the package proxychains4 provides the command proxychains4. Let's install it:

sudo apt update sudo apt install proxychains4

Once installed, you should be able to use the command without any issues:

proxychains4 firefox www.bing.com

Good luck

0
pacorabano Posted messages 203 Registration date   Status Membre Last intervention   11
 

Hello and thank you

Here is the order feedback:

linux@linux-PC:~$ dpkg -l | grep proxychains ii  libproxychains3:amd64                       3.1-8.1                                   amd64        proxy chains -- shared library (runtime) ii  libproxychains4:amd64                       4.13-4                                    amd64        runtime shared library for proxychains-ng ii  proxychains                                 3.1-8.1                                   all          proxy chains - redirect connections through proxy servers ii  proxychains4                                4.13-4                                    amd64        redirect connections through socks/http proxies (proxychains-ng)

Then:

 linux@linux-PC:~$ apt-file search libproxychains.so.4 libproxychains4: /usr/lib/x86_64-linux-gnu/libproxychains.so.4

Thank you

0
dubcek Posted messages 18814 Registration date   Status Contributeur Last intervention   5 655
 

Hello

Try:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/
0
pacorabano Posted messages 203 Registration date   Status Membre Last intervention   11
 

Hello

In the terminal?

Thank you

0
dubcek Posted messages 18814 Registration date   Status Contributeur Last intervention   5 655
 

yes, before running proxychains

0
steph810 Posted messages 1851 Registration date   Status Membre Last intervention   154
 

Good evening,

Have you tried using the complete path of firefox?

Are you using firefox or firefox-ESR?

proxychains4 /usr/bin/firefox www.bing.com
0
pacorabano
 

Good evening

Yes, here is the feedback:

 linux@linux-PC:~$ proxychains4 /usr/bin/firefox www.bing.com [proxychains] config file found: /etc/proxychains.conf [proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4 proxychains can't load process....: No such file or directory

Thank you

0
steph810 Posted messages 1851 Registration date   Status Membre Last intervention   154
 

Start by uninstalling everything:

sudo apt remove --purge tor proxychains4

A little cleaning:

sudo apt autoclean && sudo apt autoremove && sudo apt clean sudo apt purge $(dpkg --list |grep '^rc' |awk '{print $2}')

Sorry, but have you installed tor?

sudo apt install -y proxychains tor sudo service tor status sudo service tor start 

then:

proxychains4 firefox &

To change the IP again:

service tor restart

... then restart the browser (example here).

The tor service being marked as enabled, it will start at each boot.

If you do not want this, you can disable it like this:

sudo systemctl disable tor

If you want to reactivate it at every boot:

sudo systemctl enable tor

If you want to start it (whether it is enabled or disabled):

sudo service tor start
0
pacorabano
 

Hello

I found myself with this:

 linux@linux-PC:~$ service tor status ● tor.service - Anonymizing overlay network for TCP (multi-instance-master)      Loaded: loaded (/lib/systemd/system/tor.service; enabled; vendor preset: enabled)      Active: active (exited) since Sat 2024-02-24 10:04:25 CET; 3min 43s ago     Process: 50596 ExecStart=/bin/true (code=exited, status=0/SUCCESS)    Main PID: 50596 (code=exited, status=0/SUCCESS) linux@linux-PC:~$ service tor start linux@linux-PC:~$ proxychains4 firefox bash: proxychains4 : command not found

Thank you

0
pacorabano Posted messages 203 Registration date   Status Membre Last intervention   11
 

Good

I replaced my previous distribution with Ubuntu. I now find myself with this:

 linux@linux-iMac:~$ locate proxychains     /etc/proxychains.conf /etc/alternatives/proxychains /etc/alternatives/proxychains.1.gz /usr/bin/proxychains /usr/bin/proxychains3 /usr/lib/proxychains3 /usr/lib/proxychains3/proxyresolv /usr/lib/x86_64-linux-gnu/libproxychains.so.3 /usr/lib/x86_64-linux-gnu/libproxychains.so.3.0.0 /usr/share/doc/libproxychains3 /usr/share/doc/proxychains /usr/share/doc/libproxychains3/changelog.Debian.gz /usr/share/doc/libproxychains3/copyright /usr/share/doc/proxychains/changelog.Debian.gz /usr/share/doc/proxychains/copyright /usr/share/man/man1/proxychains.1.gz /usr/share/man/man1/proxychains3.1.gz /var/lib/dpkg/alternatives/proxychains /var/lib/dpkg/info/libproxychains3:amd64.list /var/lib/dpkg/info/libproxychains3:amd64.md5sums /var/lib/dpkg/info/libproxychains3:amd64.shlibs /var/lib/dpkg/info/libproxychains3:amd64.symbols /var/lib/dpkg/info/libproxychains3:amd64.triggers /var/lib/dpkg/info/proxychains.conffiles /var/lib/dpkg/info/proxychains.list /var/lib/dpkg/info/proxychains.md5sums /var/lib/dpkg/info/proxychains.postinst /var/lib/dpkg/info/proxychains.prerm linux@linux-iMac:~$ nano /etc/proxychains.conf linux@linux-iMac:~$ service tor start linux@linux-iMac:~$ proxychains firefox www.flippa.com ProxyChains-3.1 (http://proxychains.sf.net) ERROR: ld.so: object 'libproxychains.so.3' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. Gtk-Message: 18:34:52.156: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it. 

Thanks

0
steph810 Posted messages 1851 Registration date   Status Membre Last intervention   154
 

There is a problem with Firefox. Uninstall and reinstall it as explained here.

0
pacorabano Posted messages 203 Registration date   Status Membre Last intervention   11
 

Hello

I uninstalled firefox and reinstalled it according to the procedure, and I'm getting this:

 linux@linux-iMac:~$ service tor start linux@linux-iMac:~$ proxychains firefox www.flippa.com ProxyChains-3.1 (http://proxychains.sf.net) ERROR: ld.so: object 'libproxychains.so.3' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. Gtk-Message: 19:44:11.673: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.


0
mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 

Hello,

#2, #9 For me, you should only have proxychains4 and libproxychains4 installed. The mix of the two versions of proxychains is likely a primary cause of your problems.

  • If you want to use proxychains (i.e. proxychains3):
sudo apt update sudo apt install proxychains sudo apt purge proxychains4 libproxychains4
  • If you want to use proxychains4 (which seems more appropriate to me):
sudo apt update sudo apt install proxychains4 sudo apt purge proxychains libproxychains3

#3 Even though this solution works perfectly technically (and is actually suggested here or here), it is not normal that you have to "fiddle" around with LD_PRELOAD to point to libraries that are evidently required by proxychains4, but clearly poorly linked. To this end, it would also be interesting to see the result of:

ldd $(which proxychains4)

If it turns out that libproxychains4 is poorly linked, a bug report should be submitted to the Ubuntu maintainers (since you are now on Ubuntu). Depending on the result, we could consider mitigating the problem by creating a symbolic link to the expected path that points to the library that is actually installed.

#5, #11 Personally, I have a hard time seeing how these suggestions could help, since the issue is indeed related to proxychains and not the browser.

#10 The output of your locate command does not allow us to affirm this, but we don't see /usr/lib/libproxychains3.*.so which is surprising. In theory, the libproxychains3 package should be installed automatically along with proxychains. In any case, if you want proxychains4 (or proxychains) to work, libproxychains4 (or libproxychains3) must also be installed (as I explained in #1).

Good luck

0
pacorabano
 

good evening

no problem

here is the feedback on the order

ldd $(which proxychains4)
     linux-vdso.so.1 (0x00007ffffa0c0000)     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8d1c200000)     /lib64/ld-linux-x86-64.so.2 (0x00007f8d1c528000) 

Thank you

0
mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 

Hello,

Thanks to #16, everything makes sense now.

  • For some mysterious reason, proxychains4 is not explicitly linked to libproxychains4. This means that the code for proxychains contains an instruction (like dlopen) that manages to load the library. And since the binary does not depend "explicitly" (see ldd), this explains why in your very first message, we see that proxychains4 manages (more or less well) to find its library.
  • I don’t really understand the reason for this technical choice, but that’s how it is :-)

The solution from dubcek should work #3. It allows you to add folders where libraries can be found. You must therefore locate which path proxychains4 is trying to load and add the corresponding folder to LD_LIBRARY_PATH.

A second solution could be to load the library (with an explicit path) using LD_PRELOAD (see here).

A third possible solution could be to create a symbolic link (with ln -s) whose path is the one expected by proxychains and points to the appropriate ".so", but here we are getting into "the mess". Generally, it is up to the command ldconfig to regenerate symbolic links to libraries (especially to abstract version numbers, you can check the result of ls -l /usr/lib if you want to see what I’m referring to). And creating a symbolic link in /usr/lib may end up being blocking if you attempt to install a package that tries to create that file while the space is already taken. In any case, for this third approach, you would need to (re)give me the error message when you run proxychains4.

Good luck

0
pacorabano
 

Hello and thank you

Here is the feedback:

 linux@linux-iMac:~$ proxychains4 firefox [proxychains] config file found: /etc/proxychains4.conf [proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] DLL init: proxychains-ng 4.16 Gtk-Message: 10:25:35.582: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
0
steph810 Posted messages 1851 Registration date   Status Membre Last intervention   154
 

I just installed deepin and everything works: uninstall firefox and install it by following this procedure (steps 1 to 6)

0
pacorabano
 

Good evening

Thank you so much, it's working...

If I understand correctly, when I run proxychains followed by firefox, I will be connecting through proxies?

I think I've noticed, by checking various IP verification sites, that my IP changes with each site I visit, or is that a mistake?

Now, if I want to use another program, can I replace firefox with Google Chrome for example? Firefox? Thunderbird?

Thank you

0
steph810 Posted messages 1851 Registration date   Status Membre Last intervention   154 > pacorabano
 

Yes, after installing Deepin, I realized that their repositories were all in China, it's better to use official repositories.

Otherwise, yes, you can use any browser you want. However, you will have to keep filling out captchas.

Use DuckDuckGo instead of Google for searches.

If everything is OK, please mark the topic as resolved.

0
pacorabano Posted messages 203 Registration date   Status Membre Last intervention   11
 

thank you for everything

0