Chocolatey无法安装jre。投掷1603

时间:2018-05-07 15:43:42

标签: java windows powershell windows-server-2016 chocolatey

我无法使用chocolatey在Windows 2016中安装jre。 它会抛出退出代码1603。

jre正在下载。问题在安装jre时出现。

以下是日志:

[server-core-2016]  [0;32m    openstack: Progress: Downloading jre8 8.0.171... 100% [0m
[server-core-2016]  [0;32m    openstack: Progress: Downloading javaruntime 8.0.151... 100% [0m

[server-core-2016]  [0;32m    openstack: [0m
[server-core-2016]  [0;32m    openstack: jre8 v8.0.171 [Approved] [0m
[server-core-2016]  [0;32m    openstack: jre8 package files install completed. Performing other installation steps. [0m
[server-core-2016]  [0;32m    openstack: Searching if new version exists... [0m

[server-core-2016]  [0;32m    openstack: Downloading jre8 [0m
[server-core-2016]  [0;32m    openstack:   from 'https://javadl.oracle.com/webapps/download/AutoDL?BundleId=233170_512cd62ec5174c3487ac17c61aaa89e8' [0m
[server-core-2016]  [0;32m    openstack: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\jre8\8.0.171\jre8Install.exe (61.66 MB). [0m
[server-core-2016]  [0;32m    openstack: Download of jre8Install.exe (61.66 MB) completed. [0m

[server-core-2016]  [0;32m    openstack: Hashes match. [0m
[server-core-2016]  [0;32m    openstack: Installing jre8... [0m

[server-core-2016]  [0;32m    openstack: WARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\jre8_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error. [0m
[server-core-2016]  [0;32m    openstack: ERROR: Running ["C:\Users\Administrator\AppData\Local\Temp\chocolatey\jre8\8.0.171\jre8Install.exe" /s REBOOT=0 SPONSORS=0 AUTO_UPDATE=0  ] was not successful. Exit code was '1603'. Exit code indicates the following: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\jre8_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error.. [0m
[server-core-2016]  [0;32m    openstack: Environment Vars (like PATH) have changed. Close/reopen your shell to [0m
[server-core-2016]  [0;32m    openstack:  see the changes (or in powershell/cmd.exe just type `refreshenv`). [0m
[server-core-2016]  [0;32m    openstack: The install of jre8 was NOT successful. [0m
[server-core-2016]  [0;32m    openstack: Error while running 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1'.

1 个答案:

答案 0 :(得分:0)

在最新版本的Chocolatey中,有关于1603的通用退出代码的更多信息。您可以在上面的日志中看到此信息:

  

openstack:错误:运行[“C:\ Users \ Administrator \ AppData \ Local \ Temp \ chocolatey \ jre8 \ 8.0.171 \ jre8Install.exe”/ s REBOOT = 0赞助商= 0 AUTO_UPDATE = 0]未成功。退出代码为'1603'。退出代码表示以下内容:通用MSI错误。这是一个本地环境错误,不是包或MSI本身的问题 - 它可能意味着在安装之前需要挂起重启或其他东西(比如已经安装了相同的版本)。如果可用,请参阅MSI日志。如果没有,请再次添加'--install-arguments =“'/ l * v c:\ jre8_msi_install.log'”'。然后在MSI日志中搜索“返回值3”并查看错误值。

最好的建议是遵循这些说明,因为这是查找实际错误消息的最佳位置。