upleveled / system-setup

Set up a PERN development environment on Windows, macOS and Linux
28 stars 19 forks source link

Hashes mismatch error when installing Google Chrome with choco #61

Closed Eprince-hub closed 5 months ago

Eprince-hub commented 5 months ago

Following the system setup for the Windows computer, I got an error on step 10 when I tried to install Google Chrome with choco using the choco install googlechrome -y command

I am getting the error below, which shows that there is a mismatch in the hashes used by the checksum

PS C:\WINDOWS\system32> choco install googlechrome -y
Chocolatey v2.2.2
Installing the following packages:
googlechrome 
By installing, you accept licenses for the packages.
Progress: Downloading googlechrome 123.0.6312.58... 100%
GoogleChrome v123.0.6312.58 [Approved]
GoogleChrome package files install completed. Performing other installation steps.
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be downloaded. 
Error - hashes do not match. Actual value was 'F9F7E6211FF117BA49020B31AB84537F8CCB506AC7B3630D688ECC57613D960E'. 
Downloading googlechrome 64 bit from 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi'
Progress: 100% - Completed download of C:\Users\Victor\AppData\Local\Temp\chocolatey\googlechrome\123.0.6312.58\googlechromestandaloneenterprise64.msi (112.05 MB).
Download of googlechromestandaloneenterprise64.msi (112.05 MB) completed. 
Error - hashes do not match. Actual value was 'F9F7E6211FF117BA49020B31AB84537F8CCB506AC7B3630D688ECC57613D960E'. 
ERROR: Checksum for 'C:\Users\Victor\AppData\Local\Temp\chocolatey\googlechrome\123.0.6312.58\googlechromestandaloneenterprise64.msi' did not meet '3091c7cae3d8ae940ed82ef0ba45680195a7f6e7c38195c37c8d8cb36e8ae969' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
The install of GoogleChrome was NOT successful. 
Error while running 'C:\ProgramData\chocolatey\lib\googlechrome\tools\chocolateyInstall.ps1'. 
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 
Failures
GoogleChrome (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\googlechrome\tools\chocolateyInstall.ps1'. 
See log for details. 

A possible cause of this is that the new Google Chrome update does not have the correct checksum

Similar issues Chocolaty install of Google Chrome fails Chocolatey Package Error - Checksums do not match

karlhorky commented 5 months ago

Workaround

Download and install Chrome from the official website:

Eprince-hub commented 5 months ago

Thank you @karlhorky

Another thing that helped was waiting and trying this same command choco install googlechrome -y again which was able to install the Google Chrome

I am now closing this issue