Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried to install Tor on my new version of Ubuntu but it seems that Tor is not available in repositories.

How else can I do it?

share|improve this question
1  
check out this link. ubuntugeek.com/how-to-install-tor-browser-bundle-in-ubuntu.html –  Mukund Dec 27 '12 at 19:42
    
For an always up-to-date Tor Browser: github.com/micahflee/torbrowser-launcher –  Nicolas Raoul Oct 7 '13 at 5:14
add comment

8 Answers 8

As of 2014-02-13, The Tor Project's Ubuntu installation page says:

"You'll need to set up our package repository before you can fetch Tor. First, you need to figure out the name of your distribution. A quick command to run is lsb_release -c or cat /etc/debian_version. If in doubt about your Debian version, check the Debian website. For Ubuntu, ask Wikipedia. Then add this line to your /etc/apt/sources.list file:

deb     http://deb.torproject.org/torproject.org <DISTRIBUTION> main

where you put the codename of your distribution (i.e. lenny, sid, saucy or whatever it is) in place of <DISTRIBUTION>.

Then add the gpg key used to sign the packages by running the following commands at your command prompt:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Now refresh your sources, running the following command (as root) at your command prompt:

apt-get update

If there are no errors you're good to continue.

We provide a Debian package to help you keep our signing key current. It is recommended you use it. Install it using:

apt-get install deb.torproject.org-keyring

To finally install Tor just run:

apt-get install tor

Now Tor is installed and running. Move on to step two of the "Tor on Linux/Unix" instructions.

The DNS name deb.torproject.org is actually a set of independent servers in a DNS round robin configuration. If you for some reason cannot access it you might try to use the name of one of its part instead. Try deb-master.torproject.org, mirror.netcologne.de or tor.mirror.youam.de."

Step Two of "Tor on Linux/Unix" instructions:

"If you want to use Tor for anonymous web browsing, please use the Tor Browser Bundle."

"For information on how to Torify other applications, check out the Torify HOWTO."

share|improve this answer
3  
I did that but it did notwork , thanks –  ali Oct 13 '10 at 18:39
2  
I found out what the problem was , [Mr.jerad benge's help][1] was correct , I live in Iran and torproject site is blocked or filtered from Iran and that is why I could not download tor . I finally got it to work. [1]:askubuntu.com/a/6543/61218 –  ali Nov 1 '10 at 18:18
    
@ali I'm glad that you managed to find a way to install tor. I assume you also need to use bridges to connect to the tor network, right? Could you please tell me how you managed to download tor? –  king_julien Jan 15 at 11:03
add comment
  • Surf the web anonymously

    If you just want to browse the web anonymously or access .onion domains (so-called hidden services), the recommended and simplest way is to use the Tor Browser Bundle:

    1. Download Tor Browser bundle
    2. Extract the downloaded archive
    3. click on the file "start-tor-browser".

    Please note that you won't get automatic updates like you are used to in Ubuntu. If you want automatic updates, you can try the torbrowser-launcher.

    If you need maximum privacy and don't want to leave any trace of a Tor installation on your computer, download, burn and boot the Live CD system Tails.


  • Torifying any application

    Only when you want to torify any other application (Instant messenger, Bitcoin client, etc.), you need to follow this procedure.

    You can add the repository, download and install Tor on Ubuntu by executing the following commands in a Terminal:

    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 886DDD89
    sudo add-apt-repository "deb http://deb.torproject.org/torproject.org $(lsb_release -s -c) main"
    sudo apt-get update && sudo apt-get -y install tor-geoipdb
    

    Now you can start Tor by pressing Alt+F2 and entering tor. Applications that support a proxy can now be set up to use address localhost, port 9050 as a SOCKS proxy.


  • Custom web browser and proxy setup

    If you still want to torify your existing browser with stand-alone Tor and surf anonymously, you can install polipo

    sudo apt-get install polipo
    sudo cp /etc/polipo/config /etc/polipo/config.bak
    sudo wget -O /etc/polipo/config https://gitweb.torproject.org/torbrowser.git/blob_plain/ae4aa49ad9100a50eec049d0a419fac63a84d874:/build-scripts/config/polipo.conf
    sudo service polipo restart
    

    Set the browser proxy settings to localhost and port 8123. Check if the settigns are correct by visiting https://check.torproject.org. Keep in mind that the Tor Browser Bundle is still the best option to surf the web anonymously because it uses a custom-built version of Firefox.

share|improve this answer
add comment

Add this line:

deb     http://deb.torproject.org/torproject.org <DISTRIBUTION> main

to the /etc/apt/sources.list file, using sudo nano /etc/apt/sources.list.

Also, I find it easier to just download the tor browser bundle and unpack it. You get manual updates, but it informs you when there's a new version.

share|improve this answer
add comment

Source

Tor browser Ubuntu PPA

  • 32-bit

sudo add-apt-repository ppa:upubuntu-com/tor

sudo apt-get update

sudo apt-get install tor-browser

  • 64-bit

sudo add-apt-repository ppa:upubuntu-com/tor64

sudo apt-get update

sudo apt-get install tor-browser

Always needed the command:

sudo chown $USER -R ~/.tor-browser/

Run from dash or terminal

tor-browser
share|improve this answer
    
the following intruction didn't work sudo chown $USER -R ~/.tor-browser/ because the directory don't exist. This is the output message: chown: cannot access '/home/zignd/.tor-browser/': No such file or directory –  Zignd Nov 27 '12 at 11:07
    
@Zignd you probably need to start tor at least once for the directory to exist. –  Bruno Pereira Nov 27 '12 at 22:05
    
@BrunoPereira It still didn't worked, I've also install tor, polipo and tor-geoipdb. I think this answer simply don't work. –  Zignd Nov 28 '12 at 10:46
add comment

https://www.torproject.org/docs/tor-doc-unix.html.en

Step One: Download and Install Tor

The latest release of Tor can be found on the download page. We have packages for Debian, Red Hat, Gentoo, *BSD, etc there too. If you're using Ubuntu, don't use the default packages: use our deb repository instead. Similarly, CentOS / Fedora / OpenSUSE users should use our rpm repository instead.

If you're building from source, first install libevent, and make sure you have openssl and zlib (including the -devel packages if applicable). Then run:

tar xzf tor-0.2.3.25.tar.gz; cd tor-0.2.3.25 ./configure && make

Now you can run tor as src/or/tor, or you can run make install (as root if necessary) to install it into /usr/local/, and then you can start it just by running tor.

Tor comes configured as a client by default. It uses a built-in default configuration file, and most people won't need to change any of the settings. Tor is now installed.


Please pay attention to the warning in bold

The advised method of installing:

add this line to your /etc/apt/sources.list file:

 deb     http://deb.torproject.org/torproject.org <DISTRIBUTION> main

where you put the codename of your distribution (i.e. lenny, sid, maverick or whatever it is) in place of . Then add the gpg key used to sign the packages by running the following commands at your command prompt:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Now refresh your sources, running the following command at your command prompt:

sudo apt-get update

If there are no errors you're good to continue. We provide a Debian package to help you keep our signing key current. It is recommended you use it. Install it using

sudo apt-get install deb.torproject.org-keyring

To finally install Tor just run:

sudo apt-get install tor

Now Tor is installed and running. Move on to step two of the "Tor on Linux/Unix" instructions.

share|improve this answer
add comment

On the installation instruction page of tor you will find what you need to do, here are the instructions.

Enter the folloing commands in a terminal of your choice. (ctrl + alt + T as standard)

This procedure is the same for every version, but you need to edit the source line with your release name. The currently supported releases are:

  • Ubuntu 13.04 is "raring"

  • Ubuntu 12.10 is "quantal"

  • Ubuntu 12.04 is "precise"

  • Ubuntu 11.10 is "oneiric"

  • Ubuntu 11.04 is "natty"

  • Ubuntu 10.04 is "lucid"

add the source. by editing the source list. add the line that starts with deb. change RELEASENAME to what release you are on.

sudo nano  /etc/apt/sources

deb     http://deb.torproject.org/torproject.org RELEASENAME main

add the keys

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

update the system and install tor.

sudo apt-get update
sudo apt-get install deb.torproject.org-keyring
sudo apt-get install tor
share|improve this answer
    
As the install page says, these are instructions to install tor - not the tor browser bundle as the OP was asking. If you only install tor, you still have to configure your applications to use tor. –  king_julien Dec 8 '13 at 9:03
add comment

You must add the ppa to the repositories.

For 32bit OS

sudo add-apt-repository ppa:upubuntu-com/tor

For 64 bit OS

sudo add-apt-repository ppa:upubuntu-com/tor64

And now you should update, to load a the updated repository list

sudo apt-get update

And now you can install your tor-browser

sudo apt-get install tor-browser
share|improve this answer
    
Thank you for your replay. –  user166408 Jun 12 '13 at 0:34
    
I did just what you wrote.Something is wrong with my PC. –  user166408 Jun 12 '13 at 0:37
    
After I typed "sudo apt-get install tor-browser" , this massage alway comeup "E: Unable to locate package tor-browser –  user166408 Jun 12 '13 at 0:39
    
Did you run sudo apt-get update? Because I just tested this, and it works. –  Dr_Bunsen Jun 29 '13 at 9:40
add comment

Run Tor Bundle 'Portable'

You can run tor without installing it (yeah, someone could consider this off topic here).

  1. Download the latest version of tor from the website and open the signature of the file

    download_tor_and_click_on_sig

  2. Now you will see the PGP signature, save it on the same place than the Tor bundle

    right-click_and_Save-page-as

  3. Then open a terminal (Ctrl+Alt+T), go to the folder where Tor has been saved and check its integrity with this command: gpg --verify filname.tar.xz.asc

If you get a message that says "Good signature" means that your Tor is a good copy.

Now extract it, open the folder, click on start-tor-browser and run!

extract_open_click_run

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.