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

How else can I install and use Tor?


If you want to anonymously browse the internet using the Tor network

  • If by Tor, you mean a browser that uses the Tor network, please install and use the Tor Browser Bundle.

If you want to anonymously do other things using the Tor network

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:

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


  • 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".

    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.


  • Torify 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.