新来的厨师。
我正在尝试使用 chef 安装 openjdk-6-jre-headless,但首先我尝试使用 apt-get 进行安装,结果出现了这个错误
The following packages have unmet dependencies:
openjdk-6-jre-headless: Depends: openjdk-6-jre-lib (>= 6b27-1.12.3-0ubuntu1~10.04.1) but it is not going to be installed
Depends: ca-certificates-java but it is not going to be installed
Depends: tzdata-java but it is not going to be installed
Depends: java-common (>= 0.28) but it is not going to be installed
Depends: libnss3-1d (>= 3.12.3) but it is not going to be installed
Recommends: icedtea-6-jre-cacao (= 6b27-1.12.3-0ubuntu1~10.04.1) but it is not going to be installed
我知道我可以手动安装每个项目,但是使用 chef-solo 我该如何自动化所有这些。那就是我如何让 chef 安装 openjdk-6-jre-headless 并同时安装所有依赖项?
答案1
答案2
Chef apt 提供程序将-y
选项添加到命令行,以便所有提示都以“是”回答,并且命令可以非交互方式运行。