简体   繁体   English

Chocolatey 无法安装 jre。 投掷 1603

[英]Chocolatey unable to install jre. Throwing 1603

I am unable to install jre in windows 2016 using chocolatey.我无法使用 chocolatey 在 windows 2016 中安装 jre。 It throws an exit code 1603.它抛出退出代码 1603。

The jre is getting downloaded.正在下载 jre。 The problem comes at the time of installing jre.问题出在安装jre的时候。

Following is the log:以下是日志:

[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'.

In the most recent versions of Chocolatey, there is more information about about the generic exit code that is 1603. You can see this information in the log above: 在Chocolatey的最新版本中,有关于1603通用退出代码的更多信息。您可以在上面的日志中查看此信息:

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. openstack:错误:运行[“ C:\\ Users \\ Administrator \\ AppData \\ Local \\ Temp \\ chocolatey \\ jre8 \\ 8.0.171 \\ jre8Install.exe” / s REBOOT = 0 SPONSORS = 0 AUTO_UPDATE = 0]不成功。 Exit code was '1603'. 退出代码为“ 1603”。 Exit code indicates the following: Generic MSI Error. 退出代码指示以下内容:通用MSI错误。 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). 这是一个本地环境错误,不是软件包或MSI本身的问题-这可能意味着在安装或进行其他操作之前必须进行挂起的重启(例如已经安装了相同的版本)。 Please see MSI log if available. 请查看MSI日志(如果有)。 If not, try again adding '--install-arguments="'/l*vc:\\jre8_msi_install.log'"'. 如果不是,请尝试再次添加'--install-arguments =“'/ l * vc:\\ jre8_msi_install.log'”'。 Then search the MSI Log for "Return Value 3" and look above that for the error. 然后在MSI日志中搜索“返回值3”,并在错误上方查找。

The best recommendation would be to follow those instructions, as that is the best place to find the actual error message. 最好的建议是遵循这些说明,因为这是查找实际错误消息的最佳位置。

I was facing similar problem while installing wsl2 using choco .我在使用choco安装wsl2 时遇到了类似的问题。

But somehow I solved it by just Restarting PC .但不知何故,我只是通过重新启动 PC解决了它。

Sometimes, Restart process is the magic :D有时,重启过程很神奇:D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM