puppetlabs-java模块无法安装

时间:2015-11-25 11:57:41

标签: java ubuntu module puppet

使用puppetlabs-java在Ubuntu上安装Java版本1.7.0_80。

https://forge.puppetlabs.com/puppetlabs/java

我的site.pp是

class { 'java':
        package  => "java-1.7.0-openjdk-devel",
        version => "1.7.0_80"
   }

我的班级定义是否合适?得到如下错误:

Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install java-1.7.0-openjdk-devel=1.7.0_80' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package java-1.7.0-openjdk-devel
E: Couldn't find any package by regex 'java-1.7.0-openjdk-devel'
Wrapped exception:
 Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install java-1.7.0-openjdk-devel=1.7.0_80' returned 100: Reading package lists...

0 个答案:

没有答案