Add the Tor repository using the following command.
sudo sh -c 'echo "deb [arch=amd64] https://deb.torproject.org/torproject.org $(lsb_release -sc) main" >> /etc/apt/sources.list.d/tor-project.list'
Go to this link and download the latest keyring available.
Save the deb file.
Once the download is finished, you can open the deb file and hit Install.
Authenticate and finish the installation.
Or install the deb file using the following command.
sudo apt install ./Downloads/deb.torproject.org-keyring*.deb
Now, update packages using the following command.
sudo apt update
Finally, you can install Tor using the following apt command.
sudo apt install tor
Check and verify that the Tor installation is the latest using the following command.
tor --version
Check the status of the Tor service using the following systemctl command.
systemctl status tor
Now, you can install the Tor browser by installing the torbrowser-launcher package on your system.
sudo apt install torbrowser-launcher
Once installation is finished, there are two ways to install the Tor browser.
The first one is to go to the Applications and search for the Tor keyword. Launch the Tor Browser Launcher.
You will see the following window, Click on the Install Tor Browser.
The second method is to simply open the Tor Browser from the Applications.
The Tor Browser will automatically install itself on the first use.
Uninstall the Tor browser using the following command.
sudo apt remove torbrowser-launcher
Similarly, remove the Tor service using the following command.
sudo apt remove --autoremove tor
You learned how to install Tor and the Tor browser on your Ubuntu machine in this article. The Tor Browser is a customized version of Firefox that uses the Tor network to encrypt and anonymize online traffic.
When you surf the web with the Tor Browser, your connection to the website is protected from network surveillance and traffic analysis. There are, however, a few drawbacks to using the Tor Browser. Some well-known websites forbid Tor users. A government-mandated firewall also restricts Tor in some regions. Also, Tor is slower than a conventional Internet connection when it comes to viewing the web.