{"id":44033,"date":"2023-05-29T16:12:57","date_gmt":"2023-05-29T16:12:57","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=44033"},"modified":"2024-05-05T13:53:12","modified_gmt":"2024-05-05T13:53:12","slug":"install-brave-browser-ubuntu-new-rule","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/05\/install-brave-browser-ubuntu-new-rule\/","title":{"rendered":"How to Install Brave Browser in Ubuntu 24.04 | 22.04 with New Apt Rule"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-browser-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-44034\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-browser-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-browser-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-browser-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-browser-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-browser-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-browser-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This simple tutorial shows how to install brave browser via the new apt source policy in Ubuntu 24.04 &amp; 22.04.<\/p>\n<p>Due to security issue, Debian changed its policy for adding apt sources. Ubuntu is changing the rules too. Since Ubuntu 22.04, it uses more secure key files with digital signature for system repositories and PPAs.<\/p>\n<p>Since Ubuntu 23.10,\u00a0 it now uses deb822 <code>.sources<\/code> file instead of the previous <code>.list<\/code> file for third-party repositories. And, the new source files include &#8216;Signed-by&#8217; section to specify the key file.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/12\/brave-browser-feature-min.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-34314\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/12\/brave-browser-feature-min-600x371.jpg\" alt=\"\" width=\"600\" height=\"371\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/12\/brave-browser-feature-min-600x371.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/12\/brave-browser-feature-min-300x186.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/12\/brave-browser-feature-min-768x475.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/12\/brave-browser-feature-min-1536x950.jpg 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/12\/brave-browser-feature-min.jpg 1581w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Step 1: Install curl command line download tool<\/h3>\n<p>First, press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. When it opens, run command to install curl and apt-transport-https package:<\/p>\n<pre>sudo apt install apt-transport-https curl<\/pre>\n<p><i>Type user password (no asterisk feedback) when it asks.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-https.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44035\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-https-600x283.webp\" alt=\"\" width=\"600\" height=\"283\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-https-600x283.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-https-300x142.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-https-768x363.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-https-1536x725.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-https-1320x623.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-https.webp 1572w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Step 2: Download &amp; Install the key<\/h3>\n<p>Then, run curl command to download the key file and save it into <code>\/usr\/share\/keyrings<\/code> folder.<\/p>\n<p>This can be done by running the single command below in terminal:<\/p>\n<pre>sudo curl -fsSLo \/usr\/share\/keyrings\/brave-browser-archive-keyring.gpg https:\/\/brave-browser-apt-release.s3.brave.com\/brave-browser-archive-keyring.gpg<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-keyring.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44036\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-keyring-600x240.webp\" alt=\"\" width=\"600\" height=\"240\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-keyring-600x240.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-keyring-300x120.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-keyring-768x308.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-keyring-1536x616.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-keyring-1320x529.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-keyring.webp 1572w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Step 3: Add the brave apt source repository<\/h3>\n<p>The previous <code>.list<\/code> file with or without &#8216;Signed-By&#8217; is still working! But here I&#8217;m going to show the new <code>.sources<\/code> file.<\/p>\n<p>1. First, run command to create a <code>.sources<\/code> file under &#8216;\/etc\/apt\/sources.list.d&#8217;:<\/p>\n<pre>sudo gedit \/etc\/apt\/sources.list.d\/brave-browser-release.sources<\/pre>\n<p><i>Replace <b>gedit<\/b> with <b>gnome-text-editor<\/b> for Ubuntu 24.04.<\/i><\/p>\n<p>2. Then in the pop-up text editor window, paste following lines:<\/p>\n<pre>Types: deb\r\nURIs: https:\/\/brave-browser-apt-release.s3.brave.com\/\r\nSuites: stable\r\nComponents: main\r\nArchitectures: amd64\r\nSigned-By: \/usr\/share\/keyrings\/brave-browser-archive-keyring.gpg<\/pre>\n<p>As you see, the new source file is easy to read, but a bit hard to write for beginners. See <a href=\"https:\/\/discourse.ubuntu.com\/t\/spec-apt-deb822-sources-by-default\/29333\" target=\"_blank\" rel=\"noopener\">this thread for more about it.<\/a><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-sources.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44037\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-sources-600x270.webp\" alt=\"\" width=\"600\" height=\"270\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-sources-600x270.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-sources-300x135.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-sources-768x346.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-sources-1536x692.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-sources-1320x595.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/brave-sources.webp 1594w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Step 4: Update cache &amp; install Brave Browser<\/h3>\n<p>After saving the file in last step, you can now run commands below to refresh the system package cache:<\/p>\n<pre>sudo apt update<\/pre>\n<p>And, finally install the web browser via command:<\/p>\n<pre>sudo apt install brave-browser<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-brave-jammy.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44038\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-brave-jammy-600x281.webp\" alt=\"\" width=\"600\" height=\"281\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-brave-jammy-600x281.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-brave-jammy-300x140.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-brave-jammy-768x359.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-brave-jammy-1536x718.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-brave-jammy-1320x617.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-brave-jammy.webp 1572w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>You don&#8217;t have to run the command every time when a new release is out. Just launch &#8220;Software Updater&#8221;, newer release of the browser package will be available there along with system package updates.<\/p>\n<h3>Uninstall Brave:<\/h3>\n<p>To remove brave browser package, open terminal (Ctrl+Alt+T) and run command:<\/p>\n<pre>sudo apt remove --autoremove brave-browser<\/pre>\n<p>And remove the apt source repository by running command:<\/p>\n<pre>sudo rm \/etc\/apt\/sources.list.d\/brave-browser-release.list<\/pre>\n<p>Also remove the key file via command:<\/p>\n<pre>sudo rm \/usr\/share\/keyrings\/brave-browser-archive-keyring.gpg<\/pre>\n<p>Finally, run <code>sudo apt update<\/code> to refresh system package index.<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to install brave browser via the new apt source policy in Ubuntu 24.04 &amp; 22.04. Due to security issue, Debian changed its policy for adding apt sources. Ubuntu is changing the rules too. Since Ubuntu 22.04, it uses more secure key files with digital signature for system repositories and PPAs. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":44034,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2057],"class_list":["post-44033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-web"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44033","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=44033"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44033\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/44034"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=44033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=44033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=44033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}