In case of Brave installation, I get the following error:
airit@nairit-Zorin:~$ curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
OK
nairit@nairit-Zorin:~$ echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
nairit@nairit-Zorin:~$ sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://ppa.launchpad.net/rvm/smplayer/ubuntu bionic InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:6 https://packages.zorinos.com/stable bionic InRelease
Get:7 https://brave-browser-apt-release.s3.brave.com stable InRelease [3,181 B]
Hit:8 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:9 http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu bionic InRelease
Hit:10 https://packages.zorinos.com/patches bionic InRelease
Hit:11 https://packages.zorinos.com/apps bionic InRelease
Hit:12 http://ppa.launchpad.net/zorinos/apps/ubuntu bionic InRelease
Hit:13 https://packages.zorinos.com/drivers bionic InRelease
Hit:14 http://ppa.launchpad.net/zorinos/drivers/ubuntu bionic InRelease
Hit:15 http://ppa.launchpad.net/zorinos/patches/ubuntu bionic InRelease
Get:16 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages [4,777 B]
Hit:17 http://ppa.launchpad.net/zorinos/stable/ubuntu bionic InRelease
Fetched 7,958 B in 5s (1,592 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
nairit@nairit-Zorin:~$ sudo apt install brave-browser
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libegl1-mesa
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
brave-keyring
The following NEW packages will be installed:
brave-browser brave-keyring
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
Need to get 74.0 MB of archives.
After this operation, 260 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://brave-browser-apt-release.s3.brave.com stable/main amd64 brave-keyring all 1.10 [3,940 B]
Get:2 https://brave-browser-apt-release.s3.brave.com stable/main amd64 brave-browser amd64 1.10.97 [74.0 MB]
Err:2 https://brave-browser-apt-release.s3.brave.com stable/main amd64 brave-browser amd64 1.10.97
Hash Sum mismatch
Hashes of expected file:
- SHA512:4a682c84aa796dc00c4282296ad0cc5ccf25fe2c59b0ffce351633a3f128030a63e2e5eb075178983be90fac1a77fd5955d6c29575789ce04f2bdfe803c99460
- SHA256:d11f73e3b5b0f4621a4437fb46e06de5503dd0a865923ae8f15ad489663993e3
- SHA1:82061474c31e3428deca661946840dd3991b2394 [weak]
- MD5Sum:83c2455a4af3634ce95005264c548a25 [weak]
- Filesize:73950680 [weak]
Hashes of received file:
- SHA512:18b53043cff0d44ab6405f332b62a059fd3a75fef323b30c1129c9f63ff46ca671b7464087f5de1191fdbaee8f04a5634813f4b13dc04b8c44bbe5b59396db94
- SHA256:a35088dd628136ee30db78fd8cb5bd04dda1a73c6ca0e0e3aaec78b188587cc9
- SHA1:c32751b478830c14156b766ff5dd9e5fd2013eff [weak]
- MD5Sum:a436c1fe8dceb552619b7fb671308975 [weak]
- Filesize:73950680 [weak]
Last modification reported: Tue, 23 Jun 2020 19:40:17 +0000
Fetched 74.0 MB in 3min 22s (367 kB/s)
E: Failed to fetch https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:4a682c84aa796dc00c4282296ad0cc5ccf25fe2c59b0ffce351633a3f128030a63e2e5eb075178983be90fac1a77fd5955d6c29575789ce04f2bdfe803c99460
- SHA256:d11f73e3b5b0f4621a4437fb46e06de5503dd0a865923ae8f15ad489663993e3
- SHA1:82061474c31e3428deca661946840dd3991b2394 [weak]
- MD5Sum:83c2455a4af3634ce95005264c548a25 [weak]
- Filesize:73950680 [weak]
Hashes of received file:
- SHA512:18b53043cff0d44ab6405f332b62a059fd3a75fef323b30c1129c9f63ff46ca671b7464087f5de1191fdbaee8f04a5634813f4b13dc04b8c44bbe5b59396db94
- SHA256:a35088dd628136ee30db78fd8cb5bd04dda1a73c6ca0e0e3aaec78b188587cc9
- SHA1:c32751b478830c14156b766ff5dd9e5fd2013eff [weak]
- MD5Sum:a436c1fe8dceb552619b7fb671308975 [weak]
- Filesize:73950680 [weak]
Last modification reported: Tue, 23 Jun 2020 19:40:17 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Hello @nairitb,
Iâm not familiar with Zorin OS but if its based on Ubuntu installation should work following our instructions here. I do notice that you havenât indicated whether you installed the package apt-transport-https as described in step 1 of those instructions. Please do that and then let us know if it helped.
Also you say I always get the wrong sha256sum, but your sha256sum output is correct, the key has changed since thread Installation issue (ubuntu 18.04.3 LTS) was current. I see the same hash that you do:
I would suggest removing everything, cleaning the Apt cache and reinstalling. This is described here but I will detail each step below, with a couple additional steps. Run the following commands:
rm -rf /etc/apt/sources.list.d/brave-browser*
rm -rf /etc/apt/trusted.gpg.d/brave-browser*
sudo apt-key del D8BAD4DE7EE17AF52A834B2D0BB75829C2D4E821
sudo apt purge brave-browser brave-keyring (This will probably fail as you donât currently have these 2 packages installed.)
sudo apt install apt-transport-https curl
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - (Then verify the key exists in your keyring with sudo apt-key list)
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list (Then verify this worked properly with sudo cat /etc/apt/sources.list.d/brave-browser-release.list)
sudo apt-get clean
sudo apt-get update --fix-missing
sudo apt install brave-browser
This should remove everything and reset your apt configuration so that it can install the Brave package successfully.
If this doesnât work, please capture the output from all of these commands including any errors and I will try to see what might have caused the error.
Also please indicate whether you are using an HTTP proxy of any sort.
I did install the package apt-transport-https before and yes, Zorin 15 is based on Ubuntu 18.04. I am not using any HTTP proxy and my VPN was disabled during the process.
I ran all the commands as suggested by you but I am still getting the Hash Sum mismatch error.
By the way, running rm -rf /etc/apt/sources.list.d/brave-browser* gave a Permission denied error so I ran it with sudo. The output is given below:
nairit@nairit-Zorin:~$ rm -rf /etc/apt/sources.list.d/brave-browser*
rm: cannot remove '/etc/apt/sources.list.d/brave-browser-release.list': Permission denied
nairit@nairit-Zorin:~$ sudo rm -rf /etc/apt/sources.list.d/brave-browser*
nairit@nairit-Zorin:~$ sudo rm -rf /etc/apt/trusted.gpg.d/brave-browser*
nairit@nairit-Zorin:~$ sudo apt-key del D8BAD4DE7EE17AF52A834B2D0BB75829C2D4E821OK
nairit@nairit-Zorin:~$ sudo apt purge brave-browser brave-keyring
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package brave-browser
E: Unable to locate package brave-keyring
nairit@nairit-Zorin:~$ sudo apt install apt-transport-https curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version (7.58.0-2ubuntu3.9).
apt-transport-https is already the newest version (1.6.12ubuntu0.1).
The following package was automatically installed and is no longer required:
libegl1-mesa
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
nairit@nairit-Zorin:~$ curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
OK
nairit@nairit-Zorin:~$ echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
nairit@nairit-Zorin:~$ sudo cat /etc/apt/sources.list.d/brave-browser-release.list
deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
nairit@nairit-Zorin:~$ sudo apt-get clean
nairit@nairit-Zorin:~$ sudo apt-get update --fix-missing
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 http://ppa.launchpad.net/rvm/smplayer/ubuntu bionic InRelease
Hit:6 https://download.docker.com/linux/ubuntu xenial InRelease
Hit:7 http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu bionic InRelease
Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:9 http://ppa.launchpad.net/zorinos/apps/ubuntu bionic InRelease
Hit:10 https://packages.zorinos.com/stable bionic InRelease
Hit:11 https://packages.zorinos.com/patches bionic InRelease
Hit:12 http://ppa.launchpad.net/zorinos/drivers/ubuntu bionic InRelease
Hit:13 https://packages.zorinos.com/apps bionic InRelease
Hit:14 http://ppa.launchpad.net/zorinos/patches/ubuntu bionic InRelease
Hit:15 https://packages.zorinos.com/drivers bionic InRelease
Hit:16 http://ppa.launchpad.net/zorinos/stable/ubuntu bionic InRelease
Reading package lists... Done
nairit@nairit-Zorin:~$ sudo apt install brave-browser
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libegl1-mesa
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
brave-keyring
The following NEW packages will be installed:
brave-browser brave-keyring
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 74.0 MB of archives.
After this operation, 260 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://brave-browser-apt-release.s3.brave.com stable/main amd64 brave-keyring all 1.10 [3,940 B]
Get:2 https://brave-browser-apt-release.s3.brave.com stable/main amd64 brave-browser amd64 1.10.97 [74.0 MB]
Err:2 https://brave-browser-apt-release.s3.brave.com stable/main amd64 brave-browser amd64 1.10.97
Hash Sum mismatch
Hashes of expected file:
- SHA512:4a682c84aa796dc00c4282296ad0cc5ccf25fe2c59b0ffce351633a3f128030a63e2e5eb075178983be90fac1a77fd5955d6c29575789ce04f2bdfe803c99460
- SHA256:d11f73e3b5b0f4621a4437fb46e06de5503dd0a865923ae8f15ad489663993e3
- SHA1:82061474c31e3428deca661946840dd3991b2394 [weak]
- MD5Sum:83c2455a4af3634ce95005264c548a25 [weak]
- Filesize:73950680 [weak]
Hashes of received file:
- SHA512:d1c8aded87fb05f8d8a9d042c2e4e1175d2e53f4a0538ee795ff163ad312f2948d735f781021c87cccf6aa102bda6077d84e4df9900beaaf2009e043af69db26
- SHA256:93f0b16f2b1f4d16c7173b6160d0db1517fe3b40cb219fe80ff6315d52f1f41d
- SHA1:9d454e225c8c24facaf42c1858730dfc06ed6cc8 [weak]
- MD5Sum:3717246afd63e7003d4715d53b0ee4d7 [weak]
- Filesize:73950680 [weak]
Last modification reported: Tue, 23 Jun 2020 19:40:17 +0000
Fetched 74.0 MB in 28s (2,656 kB/s)
E: Failed to fetch https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:4a682c84aa796dc00c4282296ad0cc5ccf25fe2c59b0ffce351633a3f128030a63e2e5eb075178983be90fac1a77fd5955d6c29575789ce04f2bdfe803c99460
- SHA256:d11f73e3b5b0f4621a4437fb46e06de5503dd0a865923ae8f15ad489663993e3
- SHA1:82061474c31e3428deca661946840dd3991b2394 [weak]
- MD5Sum:83c2455a4af3634ce95005264c548a25 [weak]
- Filesize:73950680 [weak]
Hashes of received file:
- SHA512:d1c8aded87fb05f8d8a9d042c2e4e1175d2e53f4a0538ee795ff163ad312f2948d735f781021c87cccf6aa102bda6077d84e4df9900beaaf2009e043af69db26
- SHA256:93f0b16f2b1f4d16c7173b6160d0db1517fe3b40cb219fe80ff6315d52f1f41d
- SHA1:9d454e225c8c24facaf42c1858730dfc06ed6cc8 [weak]
- MD5Sum:3717246afd63e7003d4715d53b0ee4d7 [weak]
- Filesize:73950680 [weak]
Last modification reported: Tue, 23 Jun 2020 19:40:17 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
nairit@nairit-Zorin:~$
Please try installing again. I purged our CDN cache in case you were possibly getting a stale .deb file or APT metadata. If you still see issues please run these commands and share the output:
It is typo. Just download package directly: wget https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb
and then calculate sha256 checksum of downloaded file: sha256sum brave-browser_1.10.97_amd64.deb
I got âd11f73e3b5b0f4621a4437fb46e06de5503dd0a865923ae8f15ad489663993e3â what seem to be OK.
Thatâs good. You were able to download the correct file.
The error youâre getting when trying to install it with the GUI isnât particularly descriptive, so letâs try installing the package using the command-line instead:
sudo dpkg -i brave-browser_1.10.97_amd64.deb
Youâll have to run this from the directory where you downloaded the file of course.
I tried installing it as per your command but received an error:
nairit@nairit-Zorin:~$ sudo dpkg -i brave-browser_1.10.97_amd64.deb
Selecting previously unselected package brave-browser.
(Reading database ... 471028 files and directories currently installed.)
Preparing to unpack brave-browser_1.10.97_amd64.deb ...
Unpacking brave-browser (1.10.97) ...
dpkg: dependency problems prevent configuration of brave-browser:
brave-browser depends on brave-keyring; however:
Package brave-keyring is not installed.
dpkg: error processing package brave-browser (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2+zorin1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
brave-browser
However, I installed brave-keyring seperately and installation succeeded. Here is the output:
nairit@nairit-Zorin:~$ sudo apt install brave-keyring
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libegl1-mesa linux-headers-5.3.0-40 linux-headers-5.3.0-40-generic
linux-image-5.3.0-40-generic linux-modules-5.3.0-40-generic
linux-modules-extra-5.3.0-40-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
brave-keyring
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/3,940 B of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package brave-keyring.
(Reading database ... 471352 files and directories currently installed.)
Preparing to unpack .../brave-keyring_1.10_all.deb ...
Unpacking brave-keyring (1.10) ...
Setting up brave-keyring (1.10) ...
OK
Setting up brave-browser (1.10.97) ...
update-alternatives: using /usr/bin/brave-browser-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/brave-browser-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/brave-browser-stable to provide /usr/bin/brave-browser (brave-browser) in auto mode
Brave Browser was also installed at this point but I ran the following command anyway:
nairit@nairit-Zorin:~$ sudo dpkg -i brave-browser_1.10.97_amd64.deb
(Reading database ... 471354 files and directories currently installed.)
Preparing to unpack brave-browser_1.10.97_amd64.deb ...
Unpacking brave-browser (1.10.97) over (1.10.97) ...
Setting up brave-browser (1.10.97) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2+zorin1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
nairit@nairit-Zorin:~$
I can now confirm that Brave Browser is successfully installed in my system. But I still have no clue what was the source of all the installation errors.