我正在尝试在厨师中做到这一点:
package("libreadline5-dev") do
package_name "libreadline5-dev"
retry_delay 2
retries 0
recipe_name "default"
cookbook_name :"nginx-passenger"
action :install
end
它给出以下错误:
================================================================================
Error executing action `install` on resource 'package[libreadline5-dev]'
================================================================================
Chef::Exceptions::Package
-------------------------
libreadline5-dev has no candidate in the apt-cache
Resource Declaration:
---------------------
# In /var/chef/cookbooks/nginx-passenger/recipes/default.rb
15: package "libreadline5-dev"
16: package "build-essential"
Compiled Resource:
------------------
# Declared in /var/chef/cookbooks/nginx-passenger/recipes/default.rb:15:in `from_file'
版本:
红宝石 1.8.7
厨师:10.16.2
ubuntu:12.04(EC2 实例)
有人可以帮我解决这个问题吗?我试过这个,但它没有解决问题。