尝试更新Puppet主版本,并在尝试安装时删除以前的版本
木偶公用(=3.8.7-1电源插座1)
下面发生错误。
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安装libaugeas ruby
没有其他解决方案的效果。
如果需要其他细节,请告诉我。
最佳答案
在命令提示符下,您正在使用ubuntu。puppet与ubuntu的所有版本都不兼容。我在Ubuntu16.06上得到了相同版本Puppet(3.8.7-1)的相同错误消息。我试了无数次,直到我意识到这是操作系统版本对木偶版本的匹配。
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
关于ruby - puppet-common(= 3.8.7-1puppetlabs1)安装错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46109612/