# No candidate version available for httpd24

**URL:** <https://discourse.chef.io/t/no-candidate-version-available-for-httpd24/15804>\
**Category:** Chef Infra (archive)\
**Created:** [August 26, 2019, 10:09am UTC](https://discourse.chef.io/t/no-candidate-version-available-for-httpd24/15804 "2019-08-26T10:09:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trainocate.in](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@trainocate.in](https://discourse.chef.io/u/trainocate.in)\
**Post date:** [August 26, 2019, 10:09am UTC](https://discourse.chef.io/t/no-candidate-version-available-for-httpd24/15804/1 "2019-08-26T10:09:48Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![Pahanda](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/pahanda/32/2437_2.png) [@Pahanda](https://discourse.chef.io/u/Pahanda)\
**Post date:** [August 26, 2019, 12:35pm UTC](https://discourse.chef.io/t/no-candidate-version-available-for-httpd24/15804/2 "2019-08-26T12:35:38Z")

</div>

In Ubuntu, the Apache package in apt (unless you're using a custom repo) is `apache2`. Is this a third-party cookbook you're using for this? If so, it doesn't appear to be very aware of your environment.

---

<div class="post-metadata">

**Author:** ![trainocate.in](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@trainocate.in](https://discourse.chef.io/u/trainocate.in)\
**Post date:** [August 27, 2019, 4:32am UTC](https://discourse.chef.io/t/no-candidate-version-available-for-httpd24/15804/3 "2019-08-27T04:32:12Z")

</div>

I use **httpd** package from chef supermarket and pushed policyfile.lock.json to chef server.

---

<div class="post-metadata">

**Author:** ![jasonf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jasonf/32/2370_2.png) [@jasonf](https://discourse.chef.io/u/jasonf)\
**Post date:** [August 27, 2019, 9:31am UTC](https://discourse.chef.io/t/no-candidate-version-available-for-httpd24/15804/4 "2019-08-27T09:31:16Z")

</div>

Look up the apache2 cookbook: [https://supermarket.chef.io/cookbooks/apache2](https://supermarket.chef.io/cookbooks/apache2)
