{"id":33167,"date":"2021-01-02T09:36:30","date_gmt":"2021-01-02T09:36:30","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=33167"},"modified":"2024-12-03T06:32:11","modified_gmt":"2024-12-03T06:32:11","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 24.04 | 22.04 | 20.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 24.10, Ubuntu 24.04, Ubuntu 22.04, Ubuntu 20.04, and their based systems, .e.g, Linux Mint 22\/21. It should also work in Debian 11\/12, and old Ubuntu 18.04, Ubuntu 16.04.<\/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 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-full wp-image-33170\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-https.png\" alt=\"\" width=\"600\" height=\"153\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-https.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-https-450x115.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.)<\/b> Run command to add the Tor repository:<\/p>\n<pre style=\"border: none;\">echo \"deb [arch=amd64 signed-by=\/usr\/share\/keyrings\/deb.torproject.org-keyring.gpg] https:\/\/deb.torproject.org\/torproject.org $(lsb_release -sc) main\" | sudo tee \/etc\/apt\/sources.list.d\/tor-project.list<\/pre>\n<p>This command will create <code>tor-project.list<\/code> file under apt sources directory, and write the content under double quotation marks into it.<\/p>\n<p><b>NOTE 1:<\/b> For arm64 (e.g., Rasperry Pi), 32-bit Ubuntu 18.04\/16.04, you have to remove <code>arch=amd64<\/code> from the command.<br \/>\n<b>NOTE 2:<\/b> For Linux Mint and other Ubuntu based systems, replace <code>$(lsb_release -sc)<\/code> in the command with the Ubuntu code-name that your system based on, e.g.,<\/p>\n<ul>\n<li><b>noble<\/b> for Ubuntu 24.04, Linux Mint 22, etc.<\/li>\n<li><b>jammy<\/b> for Ubuntu 22.04, Linux Mint 21, etc.<\/li>\n<li><b>focal<\/b> for Ubuntu 20.04, Linux Mint 20, etc.<\/li>\n<li>Run <code>cat \/etc\/os-release<\/code> to tell if you don&#8217;t know which Ubuntu version your system is based on.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-repo-1.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47651\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-repo-1-700x505.webp\" alt=\"\" width=\"610\" height=\"440\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-repo-1-700x505.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-repo-1-300x216.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-repo-1.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>3.)<\/b> The keyring updates regularly and there&#8217;s no valid command to install it so far. As an alternative, <b>download the latest keyring .deb package<\/b> from the link 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>Then install it via double-click, gdebi, or by running command in terminal:<\/p>\n<pre style=\"border: none;\">sudo apt install .\/Downloads\/deb.torproject.org-keyring*.deb<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33172\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-tor-keyring.png\" alt=\"\" width=\"600\" height=\"211\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-tor-keyring.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-tor-keyring-450x158.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>4.)<\/b> Finally, refresh system package cache 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-full wp-image-33173\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-tor.png\" alt=\"\" width=\"600\" height=\"234\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-tor.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-tor-450x176.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/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-full wp-image-33175\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-version.png\" alt=\"\" width=\"600\" height=\"261\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-version.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/tor-version-450x196.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/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-33176\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-torbrowser-launcher.png\" alt=\"\" width=\"600\" height=\"222\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-torbrowser-launcher.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-torbrowser-launcher-450x167.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/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>The &#8216;<b>Software &amp; Updates -&gt; Other Software<\/b>&#8216; seems no longer display software repositories added via &#8220;signed-by&#8221; argument. To remove the repository, use command to remove the source file:<\/p>\n<pre>sudo rm \/etc\/apt\/sources.list.d\/tor-project.list<\/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 24.10, Ubuntu 24.04, Ubuntu 22.04, Ubuntu 20.04, and their based systems, .e.g, Linux Mint 22\/21. It should also work in Debian 11\/12, and old Ubuntu 18.04, Ubuntu 16.04. Tor, The Onion Router, is a free and open-source [&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"],"amp_enabled":true,"_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}]}}