Unable to install Brave browser on Ubuntu 18.04

Case: The list of commands, provided on the Brave website, is invalid for some reason. Ends up with ‘Unable to locate package’ error.

Doing an apt search brave doesn’t return anything either.

Solution A

Take note of the variable $UBUNTU_CODENAME stuck in the code supplied for installing Brave. Don’t just copy paste it:

echo “deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ $UBUNTU_CODENAME main” | sudo tee /etc/apt/sources.list.d/brave-browser-release-${UBUNTU_CODENAME}.list

Replace $UBUNTU_CODENAME with the lowercase code name for your distro.

Solution B

Use a snap. Snap is included in Ubuntu and it’s derivatives, by default.

sudo snap install brave --devmode

Observed Downsides

#1: Brave’s snap doesn’t support sudo snap connect brave:removable-media as brave has no plug named “removable-media”. This means, Brave has no access to secondary HDD’s and anything mounted in: /media/ or /mnt/.

Installing with --devmode flag, fixes the issue, as it gives unrestricted access to the target device. Just make sure everything is properly mounted (ex. not in /).

#2: Opening a link from within an app, such as Viber or Thunderbird, launches a new instance of the browser.

Did this solve your issue?