在Win10上使用Chocolatey安装jdk时出错

时间:2016-01-11 14:55:24

标签: java-8 windows-10 chocolatey

我有一个全新的Windows 10安装,并尝试使用Chocolatey安装jdk包:

choco install jdk -y

来自提升的命令shell。

不幸的是,安装失败并带有输出:

Installing the following packages:
jdk
By installing you accept licenses for the packages.

jdk8 v8.0.66
 Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8u66-b18/jdk-8u66-windows-x64.exe
 Installing jdk8...
 [ERROR] Running C:\ProgramData\chocolatey\lib\jdk8\tools\jdk-8u66-windows-x64.exe with /s ADDLO

 CAL="ToolsFeature,SourceFeature,PublicjreFeature"  was not successful. Exit code was '1603' Err

 or Message:
 .
 At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1:92 char:5
 +     throw $errorMessage
 +     ~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : OperationStopped: ([ERROR] Running...or Message:
 .:String) [], RuntimeException
     + FullyQualifiedErrorId : [ERROR] Running C:\ProgramData\chocolatey\lib\jdk8\tools\jdk-8u6

    6-windows-x64.exe with /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature"  was not

   successful. Exit code was '1603' Error Message:
 .
The install of jdk8 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\jdk8\tools\chocolateyInstall.ps1'.
 See log for details.

jdk v8.0
 The install of jdk was successful.

Chocolatey installed 1/2 package(s). 1 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
 - jdk8

巧克力登录pastebin:http://pastebin.com/raw/6yRhQR9Z

1 个答案:

答案 0 :(得分:2)

问题与磁盘空间不足有关。在清理并释放一些空间后,问题就出现了,安装成功了。