私の「Vagrant」ファイルには、次の行があります。
chef.add_recipe("php::module_apc")
しかし、それは私にこのエラーを与えます:
[2013-01-11T22:14:53+00:00] INFO: Processing package[php-apc] action install (php::module_apc line 34)
================================================================================
Error executing action `install` on resource 'package[php-apc]'
================================================================================
Chef::Exceptions::Exec
----------------------
apt-get -q -y install php-apc=3.1.7-1 returned 100, expected 0
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/php/recipes/module_apc.rb
33: when "debian"
34: package "php-apc" do
35: action :install
36: end
37: end
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/php/recipes/module_apc.rb:34:in `from_file'
package("php-apc") do
retry_delay 2
retries 0
recipe_name "module_apc"
action [:install]
cookbook_name :php
package_name "php-apc"
end
[2013-01-11T22:14:53+00:00] ERROR: Running exception handlers
[2013-01-11T22:14:53+00:00] ERROR: Exception handlers complete
[2013-01-11T22:14:53+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-01-11T22:14:53+00:00] FATAL: Chef::Exceptions::Exec: package[php-apc] (php::module_apc line 34) had an error: Chef::Exceptions::Exec: apt-get -q -y install php-apc=3.1.7-1 returned 100, expected 0
Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.
私も前にこれを実行しています:
chef.add_recipe("apt")
しかし、それも助けにはなりません。
これを修正する方法はありますか?どうもありがとう!
ところで、私は OpsCode のすべてのクックブックを使用しています: https://github.com/opscode-cookbooks/