chocolatey-community / chocolatey-packages

Chocolatey Community Maintainers Team Packages - packages that are managed and maintained by core community team for community package repository (https://community.chocolatey.org/packages)
https://community.chocolatey.org/profiles/chocolatey-community
Apache License 2.0
435 stars 374 forks source link

Google Chrome - Checksum error #2449

Closed ENTXawp closed 3 months ago

ENTXawp commented 3 months ago

Checklist

Chocolatey Version

2.2.2

Chocolatey License

None

Package Version

Google Chrome 123.0.6312.58

Current Behaviour

When installing google chrome with either choco install googlechrome -y or choco install googlechrome --version 123.0.6312.58 -y

You will encounter the error that the hashes do not match. Error - hashes do not match.

Installation will fail and Chrome won't be installed.

Log:

PS C:\WINDOWS\system32> choco install googlechrome --version 123.0.6312.58 -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 redownloaded.
Error - hashes do not match. Actual value was 'E9F6EEFCD3D6A45408AB37546B8C25AFD34D5E368ACE6F26588467830967A33C'.
Downloading googlechrome 64 bit
  from 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi'
Progress: 100% - Completed download of C:\Users\admin.xxx\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 'E9F6EEFCD3D6A45408AB37546B8C25AFD34D5E368ACE6F26588467830967A33C'.
ERROR: Checksum for 'C:\Users\admin.xxx\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.

Expected Behaviour

To finish the installation, and have Chrome installed

Steps To Reproduce

open powershell use either of the following commands:

choco install googlechrome -y or choco install googlechrome --version 123.0.6312.58 -y

Environment

- Operating System: Microsoft Windows NT 10.0.22635.0
- PowerShell Version: 5.1.22621.2419
- Shell:

Chocolatey Log

PS C:\WINDOWS\system32> choco install googlechrome --version 123.0.6312.58 -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 redownloaded.
Error - hashes do not match. Actual value was 'E9F6EEFCD3D6A45408AB37546B8C25AFD34D5E368ACE6F26588467830967A33C'.
Downloading googlechrome 64 bit
  from 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi'
Progress: 100% - Completed download of C:\Users\admin.xxx\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 'E9F6EEFCD3D6A45408AB37546B8C25AFD34D5E368ACE6F26588467830967A33C'.
ERROR: Checksum for 'C:\Users\admin.xxx\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.

Anything else?

No response

memmam commented 3 months ago

Can second I'm having this issue on a fresh Chocolatey install on a fresh Windows install

AdmiringWorm commented 3 months ago

There are currently problems with the Chocolatey Community Repository that is being investigated, until that problem is resolved, a new version of Google Chrome won't be possible to be made available.

Please follow the status message for the community repository related to this: https://status.chocolatey.org/issues/2024-04-01-package-moderation-services-returning-false-test-failures/

AdmiringWorm commented 3 months ago

This should now be available on the community website.

@memmam and @ENTXawp, can you confirm that this is no longer an issue?

memmam commented 3 months ago

Still getting the same error

gep13 commented 3 months ago

@memmam Can you confirm what command you are running?

memmam commented 3 months ago

choco install googlechrome

Same issue if I try to install Chrome using Chocolatey GUI.

gep13 commented 3 months ago

@memmam can you please try again?

memmam commented 3 months ago

It worked!

ENTXawp commented 3 months ago

Yep it works for me aswell!