How to Install Tor Browser on Ubuntu 24.04, 22.04 or 20.04

This guide will demonstrate how to install Tor Browser on Ubuntu 24.04, 22.04, or 20.04 LTS using the command-line terminal. We will explore three different methods: APT via Ubuntu’s default repository, which is recommended as the first go-to option, an alternative method of downloading and installing via the archive, and, lastly, as a third installation option, utilizing Flatpak with the Flathub repository.

Tor Browser stands as a beacon of privacy and anonymity in the digital age, offering users a secure way to browse the internet without revealing their identity or location. It routes your web traffic through multiple layers of encryption, making it extremely difficult for anyone to track your online activities. Ideal for journalists, activists, and anyone concerned with maintaining their digital privacy, Tor Browser is an essential tool in the fight against surveillance and data monitoring.

To understand why and how to install Tor Browser on Ubuntu, consider these key points:

  • Privacy Protection: Tor Browser masks your IP address, making it nearly impossible for websites, advertisers, and cybercriminals to track your online movements.
  • Access Restricted Content: Navigate the web freely, accessing content that may be restricted in your region without compromising your privacy.
  • Enhanced Security: With its focus on security, Tor Browser protects against common web threats, offering a safer browsing experience.
  • Open Source: As an open-source project, Tor Browser benefits from the scrutiny and contributions of a global community of developers, ensuring its security measures are robust and up-to-date.
  • Easy to Update: Regular updates keep Tor Browser secure against the latest threats, with the community actively working to patch vulnerabilities.
  • Free to Use: Tor Browser is completely free, making privacy accessible to everyone, regardless of their financial situation.
  • Community Support: A vast network of volunteers and privacy advocates support and develop Tor, providing valuable resources and assistance.
  • Versatile Compatibility: While this guide focuses on Ubuntu, Tor Browser is compatible with various operating systems, ensuring privacy across platforms.

Next, let’s delve into the technical steps to install Tor Browser on your Ubuntu system.

Install Tor Browser on Ubuntu via APT

Update Ubuntu Before Tor Browser Installation

Before starting the installation process, it’s important to update your system to ensure all existing packages are current and avoid potential conflicts. To do this, open your terminal and run the following command:

sudo apt update && sudo apt upgrade

Install Tor Browser on Ubuntu via APT Command

The most straightforward and efficient method to install and maintain the Tor Browser up-to-date, as outlined in this tutorial, is to install it from the default repository of Ubuntu. To accomplish this, enter the following command in your terminal:

sudo apt install tor torbrowser-launcher

Using this method, you can confidently integrate your Tor Browser installation with your Ubuntu system for easy updates and management.

Install Tor Browser on Ubuntu via Flatpak and Flathub

The second good option for installing the Tor Browser on Ubuntu is to use the Flatpak package manager with Flathub. Many people prefer Flatpak to Snapcraft, which already comes installed on Ubuntu. Many other Linux distributions also support Flatpak as the default third-party package manager for additional applications.

Note: If Flatpak isn’t already installed on your system, please refer to “How to Install Flatpak on Ubuntu with the Flatpak Team Official LaunchPAD PPA.” This guide offers step-by-step instructions for acquiring the most recent supported version using the Flatpak Team Official LaunchPAD PPA.

Confirm Flathub is Enabled For Flatpak for Tor Browser

To begin, enable Flatpak on your system by executing the following command in your terminal:

sudo flatpak remote-add --if-not-exists flathub

With Flatpak and Flathub, you can access a vast library of applications, including the Tor Browser, and easily install and maintain them on your Ubuntu system.

Install Tor Browser on Ubuntu via Flatpak Command

With Flatpak enabled on Ubuntu, use the following command to install the Tor Browser:

flatpak install flathub com.github.micahflee.torbrowser-launcher -y

Install Tor Browser on Ubuntu via Archive Download Method

The final installation method involves downloading the latest archive from the Tor Browser’s official download page. This approach ensures that you receive the most recent version of the browser. However, keep in mind that you may need to repeat this process for significant updates, although the browser should mostly self-update.

Download Tor Browser Archive

To begin, use the wget command to download the latest .tar.xz file, as shown below:


Note: The above command is for illustration purposes only. Make sure to verify and use the most recent version available.

Extract Tor Browser Archive

Once you’ve downloaded the installation archive, use the command below to unpack its contents:

tar -xvJf tor-browser-linux64-{version}_ALL.tar.xz

Relocate Tor Browser Directory

Before registering the Tor Browser as a desktop application, we should transfer it to a better-designed directory for these applications. Specifically, /usr/local/share is the perfect spot, as it typically houses shared data from local, independent applications.

First, let’s transfer the tor-browser directory to /usr/local/share using this command:

sudo mv tor-browser /usr/local/share/

Be aware that we’re employing sudo for this task because altering the contents of /usr/local/share usually demands root access.

Once you’ve relocated the tor-browser folder, access the new directory with the cd command:

cd /usr/local/share/tor-browser

Register Tor Browser Desktop Application

Now that we’re in the right folder, let’s set up the Tor Browser as a desktop app. Run the command below:

./start-tor-browser.desktop --register-app

This command produces a result that resembles the following:

Tor Browser has been registered as a desktop app for this user in ~/.local/share/applications/

Launch the Tor Browser on Ubuntu via GUI or CLI Methods

With the Tor Browser installed on your system, there are several ways to launch it, depending on your chosen installation method.

CLI Methods to Launch Tor Browser on Ubuntu

To launch the Tor Browser from the terminal, enter:


To start the Tor Browser from the terminal, use the following command:

flatpak run com.github.micahflee.torbrowser-launcher

GUI Method to Launch Tor Browser on Ubuntu

Alternatively, you can also access the Tor Browser through the applications menu:

Activities > Show Applications > Tor Browser
Launching Tor Browser on Ubuntu for secure browsing
How to launch Tor Browser on Ubuntu for privacy-focused internet use.

First-Time Tor Browser Initial Connection Setup on Ubuntu

Upon the initial launch, you will encounter a window with two buttons: “Connect” and “Configure Connection…”

Tor Browser default page view on Ubuntu system
Viewing the default page of Tor Browser on an Ubuntu system.

The majority of users will opt for the default “Connect” option. However, for those in countries with strict restrictions or seeking enhanced privacy, “Tor Network Settings” allows for proxy settings configuration. Additionally, Tor can set up bridges for users desiring better connections or experiencing difficulties accessing specific websites.

Configuring Tor Browser settings on Ubuntu for optimal use
Adjusting settings in Tor Browser on Ubuntu for a tailored experience.
Using bridge options in Tor Browser on Ubuntu to bypass blocks
Bypass internet restrictions using bridge options in Tor Browser on Ubuntu.

After clicking “Connect,” the connection process will take anywhere from 15 to 60 seconds, depending on your location and the destination you are connecting to.

Process of connecting to the Tor network on Ubuntu
Step-by-step connection to the Tor network using Tor Browser on Ubuntu.

After connecting, you’ll land on Tor’s main page, which uses DuckDuckGo for searching.

Tor Browser successfully installed and ready on Ubuntu
Confirmation of Tor Browser’s successful installation on Ubuntu.

First-Time Tips Tor Browser on Ubuntu

After successfully installing the Tor Browser on your Ubuntu desktop, it’s time to make the most of its features and enhance your browsing experience. This section will cover general tips, customizations, and other helpful suggestions.

General Tips For Tor Browser on Ubuntu

  • Stay updated: To maintain the highest level of security and privacy, always keep your Tor Browser up to date. Updates often include crucial patches and improvements.
  • Avoid browser extensions: While useful, they may introduce privacy risks or compromise anonymity. Stick to the recommended Tor Browser settings for optimal privacy.
  • Use HTTPS: Opt for HTTPS connections to further secure your browsing experience.

Tor Browser Customizations on Ubuntu

  • Security Level: Tor Browser allows you to choose from three security levels: Standard, Safer, and Safest. Each level provides a different balance between security and functionality. To change the security level, click on the shield icon next to the URL bar and select “Advanced Security Settings.”
  • Tor Circuit: Tor Browser enables you to view and modify the Tor circuit for the current site. Click the shield icon next to the URL bar and select “Tor Circuit for this site” to see the current circuit. You can request a new circuit by clicking “New Circuit for this Site.”
  • New Identity: If you want to start a fresh browsing session without closing the Tor Browser, you can request a new identity. Click on the hamburger menu in the top right corner, then select “New Identity.”

Other Tips For Tor Browser on Ubuntu

  • NoScript: NoScript is an integrated extension designed to halt potentially dangerous scripts. It initially adopts the highest security settings. But, if you stumble upon a website needing scripts to operate correctly, tap the NoScript symbol in the toolbar and modify the preferences.
  • Bookmark Management: If you want to save websites for future visits, Tor Browser allows you to create and manage bookmarks. Click on the star icon in the URL bar to bookmark a page, or use the bookmarks toolbar for quick access.

Following these tips and customizations, you can maximize your Tor Browser experience on Ubuntu while ensuring optimal privacy and security.

Additional Tor Browser Commands with Ubuntu

Update Tor Browser

The Tor Browser generally updates itself within the browser. However, for any additional updates, you can use the standard update command that corresponds to your installation method:

APT Tor Browser Update Command

sudo apt update && sudo apt upgrade

Flatpak Tor Browser Update Command

flatpak update

Remove Tor Browser

If you no longer need the Tor Browser, use the appropriate command based on your original installation method:

APT Tor Browser Remove Command

sudo apt remove tor torbrowser-launcher

Flatpak Tor Browser Remove Command

flatpak remove  --delete-data com.github.micahflee.torbrowser-launcher


In wrapping up, this guide walked you through installing Tor Browser on Ubuntu, offering different methods to suit your preference. Whether you opted for the straightforward APT method, ventured into downloading directly from the archive, or explored the Flatpak option, you’re now equipped with a powerful tool for safeguarding your online privacy. My parting advice? Keep Tor Browser updated for the best security and don’t shy away from diving deeper into its features to maximize your anonymity online. Remember, staying safe on the internet is a journey, not a one-time setup. Happy browsing, and here’s to taking control of your digital footprint!

Leave a Comment