我已经使用salt了一段时间,我最近在我的一个文件中设置oracle-java8-installer时遇到了问题。
这是我的init.sls文件。
oracle-java8-installer:
pkgrepo.managed:
- ppa: webupd8team/java
pkg.installed:
- require:
- pkgrepo: oracle-java8-installer
debconf.set:
- data:
'shared/accepted-oracle-license-v1-1': {'type': 'boolean', 'value': True}
- require_in:
- pkg: oracle-java8-installer
这是失败的输出。
----------
ID: oracle-java8-installer
Function: pkgrepo.managed
Result: False
Comment: Failed to configure repo 'oracle-java8-installer': Error: key retrieval failed: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.iWTPBbRLgo --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --logger-fd 1 --recv-keys 7B2C3B0889BF5709A105D03AC2518248EEA14886
?: [fd 4]: read error: Connection reset by peer
gpgkeys: HTTP fetch error 7: couldn't connect: eof
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Started:
Duration:
Changes:
----------
ID: oracle-java8-installer
Function: debconf.set
Result: True
Comment: All specified answers are already set
Started:
Duration:
Changes:
----------
ID: oracle-java8-installer
Function: pkg.installed
Result: False
Comment: One or more requisite failed
Started:
Duration:
Changes:
----------
我不确定它为什么会失败。 Java 7确实存在于这个系统上,我理解它们 推荐 它被卸载,但这不应该导致问题。
任何帮助表示赞赏。
require_in:
项目。