tsocks can not find libtsocks.so

Bug #1982681 reported by Mohammad Elmi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tsocks (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I use tsocks (fresh install from repo), it shows the following error:

ERROR: ld.so: object 'libtsocks.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

I checked installed files with tsocks (dpkg -L tsocks) and noticed that libtsocks.so is installed with tsocks and the problem is that it can not be found. After some search and learning how LD_PRELOAD works and finding out that tsocks actually is just a script, I fixed this error by editing /usr/bin/tsocks and changing following line

export LD_PRELOAD="libtsocks.so"

into

export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libtsocks.so"

What I did is just giving absolute path of the library.

I know that this is not the best way to fix this error (because of different versions of a so library that might exist on a system). I tried to explain my journey.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.