I'm trying to do this in chef:
package("libreadline5-dev") do
package_name "libreadline5-dev"
retry_delay 2
retries 0
recipe_name "default"
cookbook_name :"nginx-passenger"
action :install
end
It gives following error:
================================================================================
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'
Versions:
ruby 1.8.7
Chef: 10.16.2
ubuntu: 12.04 (EC2 instance)
Can someone help me fix this? I tried this but it didn't fix the issue.