{"id":33167,"date":"2021-01-02T09:36:30","date_gmt":"2021-01-02T09:36:30","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=33167"},"modified":"2026-05-08T14:12:40","modified_gmt":"2026-05-08T14:12:40","slug":"install-tor-tor-browser-ubuntu-20-10-20-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/01\/install-tor-tor-browser-ubuntu-20-10-20-04\/","title":{"rendered":"How to Install Tor &#038; Tor Browser in Ubuntu 26.04, 24.04, 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-42420\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><b>This is a beginner&#8217;s guide shows how to install and setup Tor service and Tor Browser in Ubuntu 26.04, Ubuntu 24.04, and Ubuntu 22.04, and their based systems, .e.g, Linux Mint 22\/21. It should also work in Debian 13\/12.<\/b><\/p>\n<p>Tor, The Onion Router, is a free and open-source service enables people to browser the internet anonymously. While Tor in Ubuntu main repositories is always old, here&#8217;s how to install the LATEST version and receive updates via its apt repository.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33169\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-browser.png\" alt=\"\" width=\"600\" height=\"375\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-browser.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-browser-450x281.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3>How to Install Tor via the Official Apt Repository:<\/h3>\n<p>Tor has an official apt repository that supports for all current standard supported Ubuntu and Debian releases.<\/p>\n<p><b>1.)<\/b> Open <b>terminal<\/b> either from start menu or by pressing Ctrl+Alt+T on keyboard. Then run command to enable the usage of https support for apt package manager:<\/p>\n<pre style=\"border: none;\">sudo apt install apt-transport-https<\/pre>\n<p><i>Type user password (no asterisk feedback) for sudo prompt and hit Enter. NOTE: In recent Debian\/Ubuntu, this command is no longer required since apt now support https out-of-the-box!<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51162\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-httpssupport-700x427.webp\" alt=\"\" width=\"610\" height=\"372\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-httpssupport-700x427.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-httpssupport-300x183.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-httpssupport.webp 766w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>2.) Create and add source repository for Tor.<\/b><\/p>\n<p>Also in terminal window, run the command below to create an apt source config file and edit via <code>nano<\/code> command line text editor:<\/p>\n<pre>sudo nano \/etc\/apt\/sources.list.d\/tor-project.sources<\/pre>\n<p>When file opens (in terminal), add following lines and edit accordingly.<\/p>\n<pre>Types: deb\r\nURIs: https:\/\/deb.torproject.org\/torproject.org\r\nSuites: <b>resolute<\/b>\r\nComponents: main\r\nArchitectures: <b>amd64<\/b>\r\nSigned-By: \/usr\/share\/keyrings\/deb.torproject.org-keyring.gpg<\/pre>\n<p>Here you need to replace <b>resolute<\/b> (for 26.04) with <b>noble<\/b> for Ubuntu 24.04, or <b>jammy<\/b> for Ubuntu 22.04. For Debian \/Ubuntu based systems, run <code>cat \/etc\/os-release<\/code> to tell the code-name your system is based on.<\/p>\n<p>Also, replace <code>amd64<\/code> with <code>arm64<\/code> for ARM device, such as Raspberry Pi and Snapdragon X laptops.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51163\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/add-torsources-700x414.webp\" alt=\"\" width=\"610\" height=\"361\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/add-torsources-700x414.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/add-torsources-300x177.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/add-torsources-768x454.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/add-torsources.webp 864w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>3.) Download and install the key<\/b> that you specified in last step (via &#8220;Signed-By&#8221; section), by going to the link button below:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/deb.torproject.org\/torproject.org\/pool\/main\/d\/deb.torproject.org-keyring\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download Latest Keyring (.deb)<\/a><\/div>\n<\/div>\n<p>Select download the latest version of <code>.deb<\/code> package, then click open with App Center (or Ubuntu Software) and install.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51164\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/download-installtorkey-700x390.webp\" alt=\"\" width=\"610\" height=\"340\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/download-installtorkey-700x390.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/download-installtorkey-300x167.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/download-installtorkey-768x428.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/download-installtorkey.webp 1319w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>The <code>.deb<\/code> so far will install two copies of the key files. <b>The one in <code>\/etc\/apt\/trusted.gpg.d<\/code> is deprecated due to security reason!<\/b> Run the command below to remove it:<\/p>\n<pre>sudo rm \/etc\/apt\/trusted.gpg.d\/deb.torproject.org-keyring.gpg<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51165\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/remove-deprecatedkey-700x249.webp\" alt=\"\" width=\"610\" height=\"217\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/remove-deprecatedkey-700x249.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/remove-deprecatedkey-300x107.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/remove-deprecatedkey.webp 766w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>4.)<\/b> Finally, <b>refresh system package cache<\/b> by running command:<\/p>\n<pre style=\"border: none;\">sudo apt update<\/pre>\n<p>The output should include something looks like: &#8220;<i>Get:x https:\/\/deb.torproject.org\/torproject.org &#8230;<\/i>&#8221;<\/p>\n<p>Then, install tor package via command:<\/p>\n<pre>sudo apt install tor<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51166\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-installtor2604-700x414.webp\" alt=\"\" width=\"610\" height=\"361\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-installtor2604-700x414.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-installtor2604-300x177.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-installtor2604-768x454.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-installtor2604.webp 864w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Or update it, if an old version was installed, via <b>Software Updater<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33174\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/upgrade-tor-service.png\" alt=\"\" width=\"600\" height=\"401\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/upgrade-tor-service.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/upgrade-tor-service-450x301.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>5.)<\/b> Once installed, you can check Tor version and if it&#8217;s running via commands:<\/p>\n<pre style=\"border: none;\">tor --version\r\n\r\nsystemctl status tor<\/pre>\n<p>NOTE: In case the service is not in active status, try <code>systemctl daemon-reload<\/code> then start with <code>systemctl start tor<\/code>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51167\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-services2604-700x414.webp\" alt=\"\" width=\"610\" height=\"361\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-services2604-700x414.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-services2604-300x177.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-services2604-768x454.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-services2604.webp 864w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<h3>How to Install Tor Browser in Ubuntu:<\/h3>\n<p>If everything goes OK, let&#8217;s now install the Tor web browser.<\/p>\n<p><b>1.)<\/b> Simply open terminal and run command:<\/p>\n<pre style=\"border: none;\">sudo apt install torbrowser-launcher<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-51168\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-torlauncher2604.webp\" alt=\"\" width=\"692\" height=\"511\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-torlauncher2604.webp 692w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-torlauncher2604-300x222.webp 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/p>\n<p><b>UPDATE: Due to package bug in Ubuntu 22.04, it may refuse to launch. To workaround it, open &#8216;terminal&#8217; and run command to edit the &#8216;<code>__init__.py<\/code>&#8216; (2 underscores before &amp; after &#8216;init&#8217;) file:<\/b><\/p>\n<pre>sudo gedit \/usr\/lib\/python3\/dist-packages\/torbrowser_launcher\/__init__.py<\/pre>\n<p>When the file opens, change the line 98, 99, 100 and save it:<\/p>\n<blockquote><p>gui.move(<br \/>\n(desktop.width() &#8211; window_size.width()) \/\/ 2,<br \/>\n(desktop.height() &#8211; window_size.height()) \/\/ 2<br \/>\n)<\/p><\/blockquote>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/fix-torlauncher.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-42417\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/fix-torlauncher-600x378.webp\" alt=\"\" width=\"600\" height=\"378\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/fix-torlauncher-600x378.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/fix-torlauncher-300x189.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/fix-torlauncher-768x484.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/fix-torlauncher.webp 1000w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>2.)<\/b> Then search for and open <b>Tor Browser<\/b> from system application launcher. It will automatically download &amp; install the browser in your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33177\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/download-torbrowser.png\" alt=\"\" width=\"561\" height=\"268\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/download-torbrowser.png 561w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/download-torbrowser-450x215.png 450w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/p>\n<p><i>For choice, you may open Tor Browser Launcher to select mirror, change listening port, and reinstall Tor browser.<\/i><\/p>\n<p><b>3.)<\/b> Once the download process finished, select &#8216;Configure&#8217; if you&#8217;re in a Country censors Tor or behind proxy in next window, or select &#8216;Connect&#8217;:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-42419\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-connect-600x379.webp\" alt=\"\" width=\"600\" height=\"379\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-connect-600x379.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-connect-300x189.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-connect-768x485.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-connect.webp 1020w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>When everything&#8217;s done, the Tor browser starts. That&#8217;s all. Enjoy!<\/p>\n<h3>Uninstall Tor and Tor Browser:<\/h3>\n<p>To remove Tor Browser, open terminal and run command:<\/p>\n<pre style=\"border: none;\">sudo apt remove torbrowser-launcher<\/pre>\n<p>To remove Tor network service, run command:<\/p>\n<pre style=\"border: none;\">sudo apt remove --autoremove tor<\/pre>\n<p>And, remove the tor repository by deleting the source file:<\/p>\n<pre>sudo rm \/etc\/apt\/sources.list.d\/tor-project.sources<\/pre>\n<p>Also, remove the keyring files via command:<\/p>\n<pre>sudo rm \/usr\/share\/keyrings\/deb.torproject.org-keyring.gpg<\/pre>\n<p>And, finally refresh system package cache via <code>sudo apt update<\/code> command.<\/p>","protected":false},"excerpt":{"rendered":"<p>This is a beginner&#8217;s guide shows how to install and setup Tor service and Tor Browser in Ubuntu 26.04, Ubuntu 24.04, and Ubuntu 22.04, and their based systems, .e.g, Linux Mint 22\/21. It should also work in Debian 13\/12. Tor, The Onion Router, is a free and open-source service enables people to browser the internet [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":42420,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[878],"class_list":["post-33167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-tor"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=33167"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33167\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/42420"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=33167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=33167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=33167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}