我有一个新的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:ProgramDatachocolateylibjdk8toolsjdk-8u66-windows-x64.exe with /s ADDLO
CAL="ToolsFeature,SourceFeature,PublicjreFeature" was not successful. Exit code was '1603' Err
or Message:
.
At C:ProgramDatachocolateyhelpersfunctionsStart-ChocolateyProcessAsAdmin.ps1:92 char:5
+ throw $errorMessage
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: ([ERROR] Running...or Message:
.:String) [], RuntimeException
+ FullyQualifiedErrorId : [ERROR] Running C:ProgramDatachocolateylibjdk8toolsjdk-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:ProgramDatachocolateylibjdk8toolschocolateyInstall.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:ProgramDatachocolateylogschocolatey.log).
Failures:
- jdk8
巧克力登录pastebin:http://pastebin.com/raw/6yRhQR9Z
此问题与磁盘空间不足有关。在清理并释放一些空间后,问题已经解决,安装成功。