Install Brave into Ubuntu 22.04.2 LTS

YouTube Ad Block Browser

公開日: 2023-07-25
更新日: 2024-03-13

  Table of Contents

What is Brave?

Brave is a web browser. It blocks privacy-invasive ads & trackers. It blocks third-party data storage. It protects from browser fingerprinting. It upgrades every webpage possible to secure https connections. And it does all this by default.

Features

Open source It’s also built off the open-source Chromium Web core
License Mozilla Public License 2.0
VPN Brave Firewall + VPN, but not for free
Reward system Basic Attention Token(one of bitcoin), which is given when you view first-party, privacy-protecting ads while browsing

Install Brave into Ubuntu 22.04.2 LTS

OS Ubuntu 22.04.2 LTS
CPU AMD Ryzen 9 7950X 16-Core Processor

REMARKS: DO NOT USE Brave Snap package

The official page says the follwoings:

You can find Brave in the Snapcraft Store, but while it is maintained by Brave Software, it is not yet working as well as our official packages. We currently recommend that users who are able to use our official package repositories do so instead of using the Snap.

Therefore, I’ve installed the brave by using curl and deb as the official instructs

Install script

1
2
3
4
5
% sudo apt install curl
% sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
% echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
% sudo apt update
% sudo apt install brave-browser

Note that the third line is slightly different from what the official instructs. I just add the architecture type by [arch=amd64]. Otherwise everytime you try apt update, you might come across the follwing warning:

1
2
3
4
% sudo apt update
...
1 package can be upgraded. Run 'apt list --upgradable' to see it.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386'

Root cause

But the root cause is the OS enabled multiarch. To confirm, just type the following,

1
% dpkg --print-foreign-architecture

If it says i386, that’s the root cause. So instead of adding [arch=amd64], it also works by

1
% sudo dpkg --remove-architecture i386

To find the installed packages of architecture `i386,

1
2
3
4
5
## dpkg command based
% dpkg -l | awk '/^ii/ && $4 == "i386" { print }'

## apt command based, [installed,automatic] info added
% apt list --installed | awk '$3 == "i386" { print }'

References



Share Buttons
Share on:

Feature Tags
Leave a Comment
(注意:GitHub Accountが必要となります)