我正在尝试在Raspberry Pi上创建一个Puppet主服务器,但每次我尝试安装包“puppetmaster-passenger”时,我都会收到以下错误:
pi@raspberrypi ~ $ sudo apt-get install puppetmaster-passenger
The following packages have unmet dependencies:
puppetmaster-passenger : Depends: puppetmaster-common (= 3.6.2-1puppetlabs1) but it is not going to be intalled
Depends: facter (>= 1.7.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我正在使用全新的Debian Wheezy 7.5安装并运行apt-get update。我认为问题在于facter的依赖关系之一是dmidecode,但ARM软件不支持dmidecode。我找到了一个删除旧版木偶依赖的指南,但没有最新的(最近的:http://blog.csanchez.org/2014/01/23/installing-puppet-3-in-a-beaglebone-or-raspberry-pi/)。这对于将Raspberry Pi设置为Puppet主服务器意味着什么?如果解决这个问题我需要做的就是重新编译没有依赖关系的因素,有人可以给我建议如何做到这一点吗?这是一个包含所有版本的目录:http://apt.puppetlabs.com/pool/precise/main/f/facter/(我需要运行版本> = 1.7.0)
答案 0 :(得分:0)
确保您已配置puppetlabs APT存储库:
e.g。 cat /etc/apt/sources.list.d/puppetlabs.list
:
# Puppetlabs products
deb http://apt.puppetlabs.com wheezy main
deb-src http://apt.puppetlabs.com wheezy main
# Puppetlabs dependencies
deb http://apt.puppetlabs.com wheezy dependencies
deb-src http://apt.puppetlabs.com wheezy dependencies
您可以通过几个步骤简单地安装puppet:
wget http://apt.puppetlabs.com/puppetlabs-release-wheezy.deb
dpkg -i puppetlabs-release-wheezy.deb
apt-get update
apt-get install puppetmaster-passenger
答案 1 :(得分:0)
请试试这个,我希望这个命令肯定会对你有用。
sudo apt-get install puppet = 3.7.1-1puppetlabs1 木偶常见= 3.7.1-1puppetlabs1