如何在Debian 9 Stretch上安装puppet 3.X客户端?

时间:2019-01-12 21:08:02

标签: installation puppet

我放入了较旧的Debian / Ubuntu发行版的存储库:

root@canais-c-solr01:~# cat /etc/apt/sources.list.d/puppet.list 
# Puppetlabs products
deb http://apt.puppetlabs.com trusty main
deb-src http://apt.puppetlabs.com trusty main

# Puppetlabs dependencies
deb http://apt.puppetlabs.com trusty dependencies
deb-src http://apt.puppetlabs.com trusty dependencies

# Puppetlabs devel (uncomment to activate)
# deb http://apt.puppetlabs.com trusty devel
# deb-src http://apt.puppetlabs.com trusty devel

当我尝试安装从apt-cache show puppet获取的版本时:

root@canais-c-solr01:~# apt-get install puppet=3.8.7-1puppetlabs1 puppet-common=3.8.7-1puppetlabs1  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 puppet-common : Depends: libaugeas-ruby but it is not installable or
                          libaugeas-ruby1.9.1 but it is not installable or
                          libaugeas-ruby1.8 but it is not installable
E: Unable to correct problems, you have held broken packages.

暂时无法将母版更新到最新的人偶。

1 个答案:

答案 0 :(得分:0)

apt-get install sysv-rc libruby

dpkg -i /tmp/libaugeas-ruby_0.5.0-2_all.deb
dpkg -i /tmp/puppet-common_3.8.4-1puppetlabs1_all.deb
dpkg -i /tmp/puppet_3.8.4-1puppetlabs1_all.deb

我们不得不从另一台debian机器上获得这些软件包。

首次尝试安装.deb后,您将得到一个错误。之后,您将不得不做。

apt-get install -f 
apt-get purge puppet puppet-common

然后重试。