Brave installation error : Hash Sum mismatch


I am trying to installing Brave Browser on Zorin OS 15 (installed as a virtual machine).

It installed fine without any errors previously on the another Zorin OS 15 (virtual). I tried the solutions provided in Installation issue (ubuntu 18.04.3 LTS) and Installation issue (ubuntu 18.04.3 LTS) but it did not solve the issue.

I got this Hash sum mismatch error in other apt-get upgrades as well but running the following command solved it:

sudo apt-get update -o Acquire::CompressionTypes::Order::=gz

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?

When trying the solution given in Installation issue (ubuntu 18.04.3 LTS), I always get the wrong sha256sum:

nairit@nairit-Zorin:~$ curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc > brave-core.asc
nairit@nairit-Zorin:~$ ls -l brave-core.asc
-rw-r--r-- 1 nairit nairit 3914 Jul  6 19:25 brave-core.asc
nairit@nairit-Zorin:~$ sha256sum brave-core.asc
c8fe807da94fbdabea5cb394630e11ef5a57ba0163e5c37e8e873c80602acb78  brave-core.asc

Can someone please help?

1 Like

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:

sha256sum brave-core.asc 
c8fe807da94fbdabea5cb394630e11ef5a57ba0163e5c37e8e873c80602acb78  brave-core.asc

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:

  1. rm -rf /etc/apt/sources.list.d/brave-browser*
  2. rm -rf /etc/apt/trusted.gpg.d/brave-browser*
  3. sudo apt-key del D8BAD4DE7EE17AF52A834B2D0BB75829C2D4E821
  4. sudo apt purge brave-browser brave-keyring (This will probably fail as you don’t currently have these 2 packages installed.)
  5. sudo apt install apt-transport-https curl
  6. 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)
  7. 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)
  8. sudo apt-get clean
  9. sudo apt-get update --fix-missing
  10. 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.

Hope this helps.
-Matt

2 Likes

Hi mbacchi,

Thanks for the detailed reply.

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 suggest.

Thanks and Regards,
Nairit

@nairitb,

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:

curl -svo /dev/null -H "Fastly-Debug:1" https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb 2>&1

wget https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb

ls -l sha256sum brave-browser_1.10.97_amd64.deb

sha256sum brave-browser_1.10.97_amd64.deb

Here is the output:

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 8 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 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease                     
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease           
Hit:5 https://download.docker.com/linux/ubuntu xenial InRelease                
Hit:6 http://ppa.launchpad.net/rvm/smplayer/ubuntu bionic InRelease            
Hit:7 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:8 http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu bionic InRelease  
Hit:9 http://ppa.launchpad.net/zorinos/apps/ubuntu bionic InRelease            
Hit:10 https://packages.zorinos.com/stable bionic InRelease                    
Hit:11 http://ppa.launchpad.net/zorinos/drivers/ubuntu bionic InRelease        
Hit:12 https://packages.zorinos.com/patches 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 8 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:92be0bd695e54df64475f636a645910f34c411e371e39a58f257100de051464bef8961db186b8978a79cd7e0e951a0b2270073bfa3aceb124b7706eef775c1e2
   - SHA256:2ed8fedd73a39ad2e72a6625ee6c59277844df89f7c74980ca34cc8fa52d69cb
   - SHA1:9ed90b1f55596bfd4371216cd300545929f0a2f8 [weak]
   - MD5Sum:ecc747580c216c8733722292d5d77cb2 [weak]
   - Filesize:73950680 [weak]
  Last modification reported: Tue, 23 Jun 2020 19:40:17 +0000
Fetched 74.0 MB in 2min 43s (454 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:92be0bd695e54df64475f636a645910f34c411e371e39a58f257100de051464bef8961db186b8978a79cd7e0e951a0b2270073bfa3aceb124b7706eef775c1e2
    - SHA256:2ed8fedd73a39ad2e72a6625ee6c59277844df89f7c74980ca34cc8fa52d69cb
    - SHA1:9ed90b1f55596bfd4371216cd300545929f0a2f8 [weak]
    - MD5Sum:ecc747580c216c8733722292d5d77cb2 [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:~$ curl -svo /dev/null -H "Fastly-Debug:1" https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb 2>&1
*   Trying 151.101.194.217...
* TCP_NODELAY set
* Connected to brave-browser-apt-release.s3.brave.com (151.101.194.217) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [106 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [4835 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [300 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [37 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Fastly, Inc.; CN=u2.shared.global.fastly.net
*  start date: Jul  1 17:31:16 2020 GMT
*  expire date: Apr 22 18:32:33 2021 GMT
*  subjectAltName: host "brave-browser-apt-release.s3.brave.com" matched cert's "*.s3.brave.com"
*  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign CloudSSL CA - SHA256 - G3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x55f2f69253f0)
} [5 bytes data]
> GET /pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb HTTP/2
> Host: brave-browser-apt-release.s3.brave.com
> User-Agent: curl/7.58.0
> Accept: */*
> Fastly-Debug:1
> 
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
} [5 bytes data]
< HTTP/2 200 
< x-amz-id-2: vqnq5tizOo30MYAPm/fihxhVWUEqpzFJY308V/9Gd386GAX3o2zenYQ9US9v9CAhb3F06S+kUUU=
< x-amz-request-id: 805B84DF403F1171
< last-modified: Tue, 23 Jun 2020 19:40:17 GMT
< etag: "83c2455a4af3634ce95005264c548a25"
< content-type: binary/octet-stream
< server: AmazonS3
< accept-ranges: bytes
< age: 2911
< accept-ranges: bytes
< date: Tue, 07 Jul 2020 06:13:39 GMT
< via: 1.1 varnish
< fastly-debug-path: (D cache-bom4750-BOM 1594102420) (F cache-bom4748-BOM 1594088049)
< fastly-debug-ttl: (M cache-bom4750-BOM - - 2911)
< fastly-debug-digest: 7fa46c6f595f46e4f415870e59491c4dec755cee15c49391257c83d0f9090ab1
< x-served-by: cache-bom4750-BOM
< x-cache: HIT
< x-cache-hits: 0
< content-length: 73950680
< 
{ [926 bytes data]
* Connection #0 to host brave-browser-apt-release.s3.brave.com left intact
nairit@nairit-Zorin:~$ wget https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb
--2020-07-07 11:46:30--  https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb
Resolving brave-browser-apt-release.s3.brave.com (brave-browser-apt-release.s3.brave.com)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Connecting to brave-browser-apt-release.s3.brave.com (brave-browser-apt-release.s3.brave.com)|151.101.2.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73950680 (71M) [binary/octet-stream]
Saving to: ‘brave-browser_1.10.97_amd64.deb’

brave-browser_1.10. 100%[===================>]  70.52M   599KB/s    in 1m 59s  

2020-07-07 11:48:30 (605 KB/s) - ‘brave-browser_1.10.97_amd64.deb’ saved [73950680/73950680]

nairit@nairit-Zorin:~$ ls -l sha256sum brave-browser_1.10.97_amd64.deb
ls: cannot access 'sha256sum': No such file or directory
-rw-r--r-- 1 nairit nairit 73950680 Jun 24 01:10 brave-browser_1.10.97_amd64.deb
nairit@nairit-Zorin:~$ sha256sum brave-browser_1.10.97_amd64.deb
26d12c43d6fe2a6d23e7f125c7625762524059ef1423ab0a81df7979a810ce29  brave-browser_1.10.97_amd64.deb
nairit@nairit-Zorin:~$ 

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.

I tried your instructions. Given below is the ourput:

nairit@nairit-Zorin:~$ wget https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb
--2020-07-07 21:21:10--  https://brave-browser-apt-release.s3.brave.com/pool/main/b/brave-browser/brave-browser_1.10.97_amd64.deb
Resolving brave-browser-apt-release.s3.brave.com (brave-browser-apt-release.s3.brave.com)... 151.101.194.217, 151.101.130.217, 151.101.66.217, ...
Connecting to brave-browser-apt-release.s3.brave.com (brave-browser-apt-release.s3.brave.com)|151.101.194.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73950680 (71M) [binary/octet-stream]
Saving to: ‘brave-browser_1.10.97_amd64.deb’

brave-browser_1.10. 100%[===================>]  70.52M  1.21MB/s    in 80s     

2020-07-07 21:22:32 (901 KB/s) - ‘brave-browser_1.10.97_amd64.deb’ saved [73950680/73950680]

nairit@nairit-Zorin:~$ sha256sum brave-browser_1.10.97_amd64.deb
d11f73e3b5b0f4621a4437fb46e06de5503dd0a865923ae8f15ad489663993e3  brave-browser_1.10.97_amd64.deb
nairit@nairit-Zorin:~$ 

I tried installing from the deb file and got the following screen:

followed by this screen:

I checked the installed apps but did not find Brave Browser.

Did I do something wrong?

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 to reproduce your issue in a virtual machine using Zorin Core 15.2 and everything worked fine using the official Debian instructions.

There is therefore something different about your particular installation.

Hi fmarier,

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.

Thanks to everybody for their help.

Regards,
Nairit

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.