1
在我的 「流浪」 的文件我有這樣一行:如何在使用PHP 5.4運行Ubuntu 12.04的流浪盒上安裝APC?
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/
我想你應該嘗試http://serverfault.com/。這個網站更多關於編程。 –
啊,大概吧。我能以某種方式移動它嗎? – Thasmo
嘗試登錄到流浪機器並運行'apt-get -q -y install php-apc = 3.1.7-1'。然後你會看到確切的錯誤信息。 –