从puppet安装时的PHP扩展依赖项问题

从puppet安装时的PHP扩展依赖项问题,php,debian,vagrant,puppet,Php,Debian,Vagrant,Puppet,有人知道如何解决php扩展依赖性的问题吗 default.pp 当我流浪起来时我收到了err err: /Stage[main]//Package[PhpModule_mhash]/ensure: change from purged to 5.2.10.dfsg.1-2ubuntu6.5 failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --forc

有人知道如何解决php扩展依赖性的问题吗

default.pp

当我流浪起来时我收到了err

err: /Stage[main]//Package[PhpModule_mhash]/ensure: change from purged to 5.2.10.dfsg.1-2ubuntu6.5 failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install php5-mhash=5.2.10.dfsg.1-2ubuntu6.5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
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:
php5-mhash : Depends: php5 but it is not going to be installed or
                   phpapi-20060613+lfs
E: Unable to correct problems, you have held broken packages.
at /tmp/vagrant-puppet/manifests/default.pp:79
我的虚拟箱存储库是最新的,所有必需的软件包都可用。PHP的安装也没有问题

非常有趣的是,当我
vagrant ssh
并执行以下命令时:

/usr/bin/apt get-q-y-o DPkg::Options:=--force confold--force yes安装php5 mhash=5.2.10.dfsg.1-2ubuntu6.5

它的安装没有任何通知

  • 有没有办法告诉
    软件包
    已经安装了php5
  • 如果我已经需要包,有没有办法省略依赖项
  • 在Puppet或Debian方面我有什么选择
  • 提前感谢

    木偶就是答案

    尽管我已经指定*PhpModule_mhash*包`需要php类,但我必须在清单中插入链接

    Class['php'] -> Package['PhpModule_common'] -> Package['PhpModule_cli'] -> Package['PhpModule_mhash']
    
    Class['php'] -> Package['PhpModule_common'] -> Package['PhpModule_cli'] -> Package['PhpModule_mhash']