首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >木偶-无法找到包oracle-java8-安装程序

木偶-无法找到包oracle-java8-安装程序
EN

Stack Overflow用户
提问于 2015-09-14 15:19:47
回答 1查看 1.5K关注 0票数 0

我正在使用木偶hashicorp/precise32模块在Vagrant Java 8机器上安装spantree/java8 8。在安装过程中,我会遇到以下异常:

代码语言:javascript
复制
==> default: Notice: /Stage[main]/Java8/File[/tmp/java.preseed]/ensure: defined content as '{md5}1b89c67b59fa03a9210a7b22a6b51b92'
==> default: Notice: /Stage[main]/Apache/Package[apache2]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Java8/Apt::Ppa[ppa:webupd8team/java]/Exec[add-apt-repository-ppa:webupd8team/java]/returns: executed successfully
==> default: Notice: /Stage[main]/Java8/File[/etc/profile.d/set_java_home.sh]: Dependency Package[oracle-java8-installer] has failures: true
==> default: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install oracle-java8-installer' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: E: Unable to locate package oracle-java8-installer
==> default: Error: /Stage[main]/Java8/Package[oracle-java8-installer]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install oracle-java8-installer' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: E: Unable to locate package oracle-java8-installer
==> default: Warning: /Stage[main]/Java8/File[/etc/profile.d/set_java_home.sh]: Skipping because of failed dependencies

我预测行no有问题。- 48文件init.pp

代码语言:javascript
复制
  ubuntu: {
      include apt

      apt::ppa { 'ppa:webupd8team/java': }

      package { 'oracle-java8-installer':
        responsefile => '/tmp/java.preseed',
        require      => [
          Apt::Ppa['ppa:webupd8team/java'],
          File['/tmp/java.preseed']
        ],
      }

知道我该怎么修吗?

P.S:我正在使用librarian-puppet木偶锻造下载spantree/java8 8模块。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-17 15:59:41

通过确保在添加了新的ppa之后apt-get update运行,最终能够传递错误--这是我在java8/manifests/init.pp中的更改:

代码语言:javascript
复制
ubuntu: {
  include apt

  apt::ppa { 'ppa:webupd8team/java': }

  exec { 'apt-update':
      command => "/usr/bin/apt-get update",
      require      => [
        Apt::Ppa['ppa:webupd8team/java']
      ],
  }

  package { 'oracle-java8-installer':
    responsefile => '/tmp/java.preseed',
    require      => [
      Exec['apt-update'],
      File['/tmp/java.preseed']
    ],
  }
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32568387

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档