LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2018, 11:12 PM   #1
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Rep: Reputation: Disabled
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?

Last edited by trumpforprez; 06-16-2018 at 11:15 AM.
 
Old 06-15-2018, 11:16 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
How did you install Tor?

Could you paste the output from the following command:

Code:
dpkg -l "*tor*"
 
Old 06-15-2018, 11:51 PM   #3
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
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
 
Old 06-16-2018, 12:06 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by trumpforprez View Post
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.
 
2 members found this post helpful.
Old 06-16-2018, 01:17 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by trumpforprez View Post
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.
 
1 members found this post helpful.
Old 06-16-2018, 07:03 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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).
 
1 members found this post helpful.
Old 06-16-2018, 10:42 AM   #7
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
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?
 
Old 06-16-2018, 11:04 AM   #8
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
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.

Last edited by trumpforprez; 06-16-2018 at 11:11 AM.
 
Old 06-16-2018, 11:09 AM   #9
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
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.
 
Old 06-16-2018, 11:33 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by trumpforprez View Post
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 View Post
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
 
2 members found this post helpful.
Old 06-17-2018, 01:27 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
hydrurga, thank you for your seemingly never-ending patience.
i bow out.
 
Old 06-17-2018, 03:19 AM   #12
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If I want to remove all related packages
Code:
$ apt-get remove *tor* --purge
 
Old 06-17-2018, 03:26 AM   #13
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by AwesomeMachine View Post
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...

Last edited by Turbocapitalist; 06-17-2018 at 03:27 AM.
 
Old 06-17-2018, 04:52 AM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by AwesomeMachine View Post
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.
 
Old 06-17-2018, 05:00 AM   #15
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by hydrurga View Post
purge innocent bystanders
https://youtu.be/HSmrTFJlD2Q?t=182
(scnr)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tor via Vidalia can't run on Debian. hack3rcon Debian 9 05-10-2016 12:20 PM
[SOLVED] Debian and Polipo (Vidalia Bundle/Tor) Amdx2_x64 Linux - Networking 11 02-14-2011 07:18 AM
Problems on installing Tor on Debian/Xfce bojingles Linux - Software 22 07-24-2007 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration