More than 1 year has passed since last update.


Error executing action `install` on resource 'package[php-mysql]'

 returned 1, expected 0

Resource Declaration:
# In /home/vagrant/chef-solo/cookbooks-3/php/recipes/default.rb

 11:   package pkg do
 12:     action :install
 13:   end
 14: end

Compiled Resource:
# Declared in /home/vagrant/chef-solo/cookbooks-3/php/recipes/default.rb:11:in `block in from_file'

package("php-mysql") do
  action [:install]
  retries 0
  retry_delay 2
  package_name "php-mysql"
  version "5.4.33-2.el6.remi"
  cookbook_name :php
  recipe_name "default"

vagrantにsshしてyum install php-mysqlしてみる

Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve: is needed by postfix-2:2.6.6-6.el6_5.x86_64 is needed by postfix-2:2.6.6-6.el6_5.x86_64
 You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2014-10-03-06-11Hr12mV.yumtx

とりあえずyum clean allしても直らん

結局問題になっているpackageをyum removeしてもう一度やったら入った。。。

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.