I'm using httpd(0.6.2) custom resource in my ubuntu 16.04 node. When I run chef-install i'm getting the below error.
Recipe: lamp::prep
* apt_package[httpd24] action install
* No candidate version available for httpd24
================================================================================
Error executing action `install` on resource 'apt_package[httpd24]'
================================================================================
Chef::Exceptions::Package
-------------------------
No candidate version available for httpd24
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/lamp/recipes/prep.rb
8: package pkg do
9: action :install
10: end
11: end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/lamp/recipes/prep.rb:8:in `block in from_file'
apt_package("httpd24") do
package_name "httpd24"
action [:install]
default_guard_interpreter :default
declared_type :package
cookbook_name "lamp"
recipe_name "prep"
end
System Info:
------------
chef_version=15.2.20
platform=ubuntu
platform_version=16.04
ruby=ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
program_name=/usr/bin/chef-client
executable=/opt/chef/bin/chef-client
Running handlers:
[2019-08-26T16:57:56+07:00] ERROR: Running exception handlers
Running handlers complete
[2019-08-26T16:57:56+07:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 02 seconds
[2019-08-26T16:57:56+07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2019-08-26T16:57:56+07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-08-26T16:57:56+07:00] FATAL: Chef::Exceptions::Package: apt_package[httpd24] (lamp::prep line 8) had an error: Chef::Exceptions::Package: No candidate version available for httpd24