1

Я получаю сообщение об ошибке при установке браузера Google Chrome в powershell с использованием chocolatey. Это работает, когда я анализирую проверку хеша, но как мне убедиться, что это исправлено в nuget?

Я могу установить другие пакеты.

PS C:\Windows\system32> choco install googlechrome
Chocolatey v0.10.11
Installing the following packages:
googlechrome
By installing you accept licenses for the packages.
Progress: Downloading GoogleChrome 71.0.3578.80... 100%

GoogleChrome v71.0.3578.80 [Approved]
googlechrome package files install completed. Performing other installation steps.
The package GoogleChrome wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[N]o/[P]rint): y

Using system proxy server 'server.proxy.com:8081'.
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 'E080C523B419D0F706B3633FCBCE37ADA61F983BDEAB1084E3320C69BA2134A4'.
Downloading googlechrome 64 bit
  from 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi'
Using system proxy server 'proxy.jp.sbibits.com:8080'.
Progress: 100% - Completed download of C:\Users\jenkins\AppData\Local\Temp\chocolatey\GoogleChrome\71.0.3578.80\googlechromestandaloneenterprise64.msi (53.85 MB).
Download of googlechromestandaloneenterprise64.msi (53.85 MB) completed.
Error - hashes do not match. Actual value was 'E080C523B419D0F706B3633FCBCE37ADA61F983BDEAB1084E3320C69BA2134A4'.
ERROR: Checksum for 'C:\Users\jenkins\AppData\Local\Temp\chocolatey\GoogleChrome\71.0.3578.80\googlechromestandaloneenterprise64.msi' did not meet 'a4e5e5562b1ef9bd6a3b28ff66f37ddefba2d5b60e6f49f8a9981703bef0587e' 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).

0