puppet-common(= 3.8.7-1puppetlabs1)安装错误

时间:2017-09-08 06:00:00

标签: ruby rubygems puppet

尝试更新puppet master版本,并在我尝试安装后删除以前的版本

  

puppet-common(= 3.8.7-1puppetlabs1)

发生以下错误。

root@puppetmaster:/home/ubuntu/puppet# apt install puppet-common
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.
apt-get install ruby  
apt-get -f install

  

sudo apt-get install libaugeas-ruby

没有像其他解决方案那样工作。

如果需要任何其他详细信息,请告诉我。

2 个答案:

答案 0 :(得分:1)

查看命令提示符,您正在使用Ubuntu。 Puppet与所有版本的Ubuntu都不兼容。我在Ubuntu 16.06上获得了相同版本的Puppet(3.8.7-1)的相同错误消息。我尝试了一百万件事,直到我意识到它是Puppet版本匹配的操作系统版本。

https://docs.puppet.com/puppet/3.8/install_debian_ubuntu.html

如果您安装了您正在使用的操作系统支持的puppet版本。它应该安装。在不知道你所使用的Ubuntu版本的情况下,这可能不是问题,但如果是这样,你应该处于良好的状态。如果您是16.04,请在下方链接:

http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-puppet-on-ubuntu-16-04.html

答案 1 :(得分:1)

您的里程可能会有所不同,但是我可以解决此问题的唯一方法是删除.list中所有与p相关的/etc/apt/sources.list.d文件。

文件是

puppetlabs.list
puppetlabs-pc1.list
puppet.list

完成后,我可以运行apt-get install puppet,并且命令运行正常。