LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot remove tor program on debian (with later reinstall) (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-remove-tor-program-on-debian-with-later-reinstall-4175632042/)

trumpforprez 06-15-2018 11:12 PM

Cannot remove tor program on debian (with later reinstall)
 
I have found that tor-browser isn't quite working as expected.
There is no anonymity and there is no latency when browsing.
So I decided to uninstall tor.

I initially used the following command:
Code:

apt-get purge tor
However, tor remained as an option on my xfce desktop.
When I selected the tor program - it opened up despite having been deleted.

I then used the following commands:
Code:

apt-get remove tor

apt-get remove --auto-remove tor

apt-get purge --auto-remove tor

But tor-browser still exists on my OS and opens up without problems.

Is there a way I can have control over my OS and actually delete a program like tor?

hydrurga 06-15-2018 11:16 PM

How did you install Tor?

Could you paste the output from the following command:

Code:

dpkg -l "*tor*"

trumpforprez 06-15-2018 11:51 PM

Quote:

Originally Posted by hydrurga (Post 5868169)
How did you install Tor?

Could you paste the output from the following command:

Code:

dpkg -l "*tor*"

Well, I followed the instruction from the torproject site and used this command:
Code:

apt install tor
It was that easy.

The output of dpkg -l "*tor*" is:
Code:

dpkg -l "*tor*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name          Version      Architecture Description
+++-==============-============-============-=================================
un  computer-janit <none>      <none>      (no description available)
un  editor        <none>      <none>      (no description available)
un  fusioninventor <none>      <none>      (no description available)
ii  gnome-calculat 3.14.1-1    amd64        GNOME desktop calculator
un  gobject-intros <none>      <none>      (no description available)
ii  libatk-adaptor 2.14.0-2    amd64        AT-SPI 2 toolkit bridge
ii  libgirepositor 1.42.0-2.2  amd64        Library for handling GObject intr
un  libgirepositor <none>      <none>      (no description available)
un  libraptor1    <none>      <none>      (no description available)
ii  libraptor2-0:a 2.0.14-1    amd64        Raptor 2 RDF syntax library
un  librdf-storage <none>      <none>      (no description available)
un  librdf-storage <none>      <none>      (no description available)
un  librdf-storage <none>      <none>      (no description available)
un  librdf-storage <none>      <none>      (no description available)
un  libreoffice-my <none>      <none>      (no description available)
un  libstorable-pe <none>      <none>      (no description available)
un  libtorture0    <none>      <none>      (no description available)
un  podlators-perl <none>      <none>      (no description available)
un  python-cryptog <none>      <none>      (no description available)
un  qtcreator      <none>      <none>      (no description available)
un  raptor2-utils  <none>      <none>      (no description available)
un  tor            <none>      <none>      (no description available)
ii  torbrowser-lau 0.2.9-1~bpo8 amd64        helps download and run the Tor Br
rc  torsocks      2.0.0-3      amd64        use SOCKS-friendly applications w
un  x-terminal-emu <none>      <none>      (no description available)
un  xul-ext-torbut <none>      <none>      (no description available)

This is my /etc/apt/sources.list.
I'm including it because it appears that a repo may be missing despite comments indicating that a repo should be there:
Code:

cat /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03]/ jessie contrib main

# Trumpforprez: the cdrom has been hashed out from the default for some reason.
# deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD Binary-1 20160123-19:03]/ jessie contrib main

deb http://ftp.uk.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

# jessie-updates, previously known as 'volatile'
deb-src http://ftp.uk.debian.org/debian/ jessie-updates main contrib non-free
deb http://http.debian.net/debian/ jessie-backports main
deb http://httpredir.debian.org/debian/ jessie-backports main contrib

# Trumpforprez 07/05/18 The source list below has been removed as it is a duplicate
#deb http://http.debian.net/debian/ jessie-backports main

# Backports repository

# Trumpforprez. This is the backports repo to install and update tor-browser via debian and avoiding over-the-air
#installs from 3rd party websites which require the install to be checked (e.g. checksum or gpngp key).
# https://wiki.debian.org/Backports#Adding_the_repository webpage has 'non'free' deleted as tor-browser requires main and contrib.


# Trumpforprez 07/05/18 This source list has been removed as it is a duplicate. The source list already exists above
#deb http://http.debian.net/debian/ jessie-backports main


Turbocapitalist 06-16-2018 12:06 AM

Quote:

Originally Posted by trumpforprez (Post 5868174)
The output of dpkg -l "*tor*" is:
Code:

dpkg -l "*tor*"
...
ii  torbrowser-lau 0.2.9-1~bpo8 amd64        helps download and run the Tor Br
rc  torsocks      2.0.0-3      amd64        use SOCKS-friendly applications w
...


The one installed item related to Tor there is the installer for the Tor Browser Bundle (TBB). Try uninstalling that, but the link you are probably seeing there is the TBB and not Tor. If uninstalling the package "torbrowswer-launcher" does not remove it, you'll just have to remove the icon yourself and delete the TBB directory manually. It is self-contained in a single directory hierarchy, I think in your home directory.

ondoho 06-16-2018 01:17 AM

Quote:

Originally Posted by trumpforprez (Post 5868168)
I have found that tor-browser isn't quite working as expected.
There is no anonymity and there is no latency when browsing.

to anybody else reading this, i just want to stress that this is merely OP's personal experience.
many people succesfully use the tor-browser-bundle to browse the internet anonymously, over the tor network.

the application 'tor' itself can also be used to make larger parts of the system use the tor network, but very likely requires manual setup.

hydrurga 06-16-2018 07:03 AM

Yes, use:

Code:

apt-get --purge autoremove package_name
to purge the two packages highlighted by Turbocapitalist and remove any auto-installed dependencies.

Note that your sources.list is missing the deb line for jessie-updates (it only has the deb-src line).

trumpforprez 06-16-2018 10:42 AM

Quote:

Originally Posted by Turbocapitalist (Post 5868178)
The one installed item related to Tor there is the installer for the Tor Browser Bundle (TBB). Try uninstalling that, but the link you are probably seeing there is the TBB and not Tor. If uninstalling the package "torbrowswer-launcher" does not remove it, you'll just have to remove the icon yourself and delete the TBB directory manually. It is self-contained in a single directory hierarchy, I think in your home directory.

Thank you. I am looking for the Tor Browser Bundle (TBB) in my /home directory so I can manually uninstall it.
However, I can't seem to find it:

Code:

/home/Trumpforprez# ls -a
.              .bashrc        Desktop    .gconf            .ICEauthority  Music    .quodlibet  .Xauthority
..              .cache        .dmrc          .gimp-2.8            .local          Pictures  Templates          .xscreensaver
.bash_history  .config        Documents  .gnupg            Mnt                  .profile  .thumbnails  .xsession-errors
.bash_logout  .dbus        Downloads  .gstreamer-0.10  .mozilla          Public    Videos          .xsession-errors.old

Am I looking in the right place for the TBB?

trumpforprez 06-16-2018 11:04 AM

Quote:

Originally Posted by ondoho (Post 5868186)
to anybody else reading this, i just want to stress that this is merely OP's personal experience.

If I try to use the Google search engine with tor - Google will note I am using a tor exit node and refuse to provide its service.
This is acceptable but disappointing.

So which search engine should I use?
I presume all tor users are conveniently separated out and placed on the DuckDuckGo search engine.
That's interesting, isn't it?
I no longer use DuckDuckGo.

Also, when I go on Youtube using tor with security setting set to 'high' - previously Google Youtube refused to show videos.
This is acceptable but disappointing.

But now Youtube shows videos and recommends videos for US/UK.
Even though my tor IP address indicates a different geolocation.

Quote:

many people succesfully use the tor-browser-bundle to browse the internet anonymously, over the tor network.
That is excellent news. I would like to try that out myself.
However, I will also be undertaking a VPN subscription.
It seems to be the fashion these days.

It is possible my Debian setup is not done correctly.
After I've made the necessary adjustments - tor will be working fine and dandy again.

Edit: I've just realised I haven't made it clear I will be re-installing tor.
Sorry about that.
I'll change the thread title.

trumpforprez 06-16-2018 11:09 AM

Quote:

Originally Posted by hydrurga (Post 5868249)
Yes, use:

Code:

apt-get --purge autoremove package_name
to purge the two packages highlighted by Turbocapitalist and remove any auto-installed dependencies.

Thank you - the command is useful
Tor Browser Bundle is the first package, but which is the second which I need to remove?

Quote:

Note that your sources.list is missing the deb line for jessie-updates (it only has the deb-src line).
OMG. What is the jessie-update repo please?
I'll need to add it to my /etc/apt/sources.list.

hydrurga 06-16-2018 11:33 AM

Quote:

Originally Posted by trumpforprez (Post 5868326)
Thank you - the command is useful
Tor Browser Bundle is the first package, but which is the second which I need to remove?

torsocks (the one designated "rc" by dpkg). It has already been removed, you just have to purge its configuration with the command I gave.

Quote:

Originally Posted by trumpforprez (Post 5868326)
OMG. What is the jessie-update repo please?
I'll need to add it to my /etc/apt/sources.list.

Have a good look at https://wiki.debian.org/SourcesList

You need to add (remaining consistent, but not obligatorily so, with the mirror you appear to be using):

Code:

deb http://ftp.uk.debian.org/debian/ jessie-updates main contrib non-free

ondoho 06-17-2018 01:27 AM

hydrurga, thank you for your seemingly never-ending patience.
i bow out.

AwesomeMachine 06-17-2018 03:19 AM

If I want to remove all related packages
Code:

$ apt-get remove *tor* --purge

Turbocapitalist 06-17-2018 03:26 AM

Quote:

Originally Posted by AwesomeMachine (Post 5868502)
If I want to remove all related packages
Code:

$ apt-get remove *tor* --purge

I haven't checked but it may be that the one package, torbrowser-launcher, may leave files behind. I would hope not but that may be the case.

However, it may not matter after the next week because web pages will most probably be declared illegal (in effect) in the EU if at least one more the MEPs fails to wise up before the upcoming vote. A great many exit nodes are inside of the EU...

hydrurga 06-17-2018 04:52 AM

Quote:

Originally Posted by AwesomeMachine (Post 5868502)
If I want to remove all related packages
Code:

$ apt-get remove *tor* --purge

If you don't mind me saying so, this would not be advisable because it would pick up all the packages with "tor" somewhere in the name, so would also purge innocent bystanders such as mate-system-monitor and libstorable-perl.

Also, there's no need for apt-get --purge remove, the less verbose apt-get purge will work fine.

ondoho 06-17-2018 05:00 AM

Quote:

Originally Posted by hydrurga (Post 5868521)
purge innocent bystanders

https://youtu.be/HSmrTFJlD2Q?t=182
:D (scnr)


All times are GMT -5. The time now is 01:54 AM.