安装时出现错误Java SE 运行时环境(和AutoHotkey (便携式)也是下载次数第六多的 Chocolatey 软件包:
The integrity of the file 'jre8Install.exe' from 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211997' has not been verified by a checksum in the package scripts.
安装安全吗?这个软件包或我的系统有问题吗?
Chocolatey v0.10.0
Installing the following packages:
jre8
By installing you accept licenses for the packages.
jre8 v8.0.101 [Approved]
The package jre8 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 setting
'allowGlobalConfirmation'. Run 'choco feature -h' for more details.
Do you want to run the script?([Y]es/[N]o/[P]rint): y
Searching if new version exists...
Downloading jre8
from 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211997'
Progress: 100% - Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\jre8\8.0.101\jre8Install.exe (52.63 MB).
Download of jre8Install.exe (52.63 MB) completed.
WARNING: Missing package checksums are not allowed (by default for HTTP/FTP,
HTTPS when feature 'allowEmptyChecksumsSecure' is disabled) for
safety and security reasons. Although we strongly advise against it,
if you need this functionality, please set the feature
'allowEmptyChecksums' ('choco feature enable -n
allowEmptyChecksums')
or pass in the option '--allow-empty-checksums'.
The integrity of the file 'jre8Install.exe' from 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211997' has not been verified by a checksum in the package scripts.
答案1
Chocolatey 0.10.0 要求对所有软件包进行校验和验证(请参阅校验和要求和增强功能)。
您看到此错误,因为包的作者jre8
没有提供校验和。
要强制安装包,您应该输入--allow-empty-checksums
参数:
choco install jre8 --allow-empty-checksums
您还可以联系维护人员并要求添加对校验和验证的支持: