Issue:
Certain choco packages may have mismatched signatures from its repo due to some minor oversights. Here’s an example:
PS C:\Users\Cuilo> choco install googlechrome -y
Chocolatey v0.10.15
Installing the following packages:
googlechrome
By installing you accept licenses for the packages.
Progress: Downloading chocolatey-core.extension 1.3.5.1... 100%
Progress: Downloading GoogleChrome 86.0.4240.193... 100%
chocolatey-core.extension v1.3.5.1
chocolatey-core.extension package files install completed. Performing other installation steps.
Installed/updated chocolatey-core extensions.
The install of chocolatey-core.extension was successful.
Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'
GoogleChrome v86.0.4240.193 [Approved]
googlechrome package files install completed. Performing other installation steps.
Downloading googlechrome 64 bit
from 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi'
Progress: 100% - Completed download of C:\Users\cuilo\AppData\Local\Temp\chocolatey\GoogleChrome\86.0.4240.193\googlechromestandaloneenterprise64.msi (66.99 MB).
Download of googlechromestandaloneenterprise64.msi (66.99 MB) completed.
Error - hashes do not match. Actual value was 'F680DE233619BC749C0E4F0FEFF0B6253781F92CF5AA2D4DB8C29529F399E5AF'.
ERROR: Checksum for 'C:\Users\cuilo\AppData\Local\Temp\chocolatey\GoogleChrome\86.0.4240.193\googlechromestandaloneenterprise64.msi' did not meet 'cd49d04a5a7ebcfcdca995d6a3bef605d5bc82e6a6a254f8b5b6c590e7290130' 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 1/2 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 detail
Solution:
PS C:\Users\cuilo> choco install googlechrome -y --ignore-checksums
Chocolatey v0.10.15
Installing the following packages:
googlechrome
By installing you accept licenses for the packages.
Progress: Downloading GoogleChrome 86.0.4240.193... 100%
GoogleChrome v86.0.4240.193 [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.
WARNING: Ignoring checksums due to feature checksumFiles turned off or option --ignore-checksums set.
WARNING: Ignoring checksums due to feature checksumFiles turned off or option --ignore-checksums set.
Installing googlechrome...
googlechrome has been installed.
googlechrome may be able to be automatically uninstalled.
The install of googlechrome was successful.
Software installed as 'MSI', install location is likely default.
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Categories: