Httpd load failing - No version specified, and no candidate version available for apr

Hi All,

I am trying to execute a small book to install httpd webserver. Coming to
node : I am using rhel6-Vagrant. can any one helps to resolve this issue
please. I am attaching kitchen and httpd.rb files. Please let me know if I
need to provide more details.


================================================================================
Error executing action install on resource ‘package[apr]’

================================================================================

       Chef::Exceptions::Package
       -------------------------
       No version specified, and no candidate version available for apr

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb

        11:   package pkg do
        12:     action :install
        13:   end
        14: end

       Compiled Resource:
       ------------------
       # Declared in

/tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb:11:in `block in
from_file’

       package("apr") do
         action [:install]
         retries 0
         retry_delay 2
         guard_interpreter :default
         package_name "apr"
         timeout 900
         cookbook_name :"hello-world"
         recipe_name "httpd"
       end

What happens when you try to install that package manually?

On Sep 8, 2015, at 7:49 AM, Sudhakar Anemu sudhakar.anemu@gmail.com wrote:

Hi All,

I am trying to execute a small book to install httpd webserver. Coming to node : I am using rhel6-Vagrant. can any one helps to resolve this issue please. I am attaching kitchen and httpd.rb files. Please let me know if I need to provide more details.


      ================================================================================
       Error executing action `install` on resource 'package[apr]'
       ================================================================================

       Chef::Exceptions::Package
       -------------------------
       No version specified, and no candidate version available for apr

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb

        11:   package pkg do
        12:     action :install
        13:   end
        14: end

       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb:11:in `block in from_file'

       package("apr") do
         action [:install]
         retries 0
         retry_delay 2
         guard_interpreter :default
         package_name "apr"
         timeout 900
         cookbook_name :"hello-world"
         recipe_name "httpd"
       end

<error.txt>
<.kitchen.yml>
<httpd.rb>

manual installation is fine where I am looking to use chef to install.

On Tue, Sep 8, 2015 at 9:40 PM, Taylor Price tayworm@gmail.com wrote:

What happens when you try to install that package manually?

On Sep 8, 2015, at 7:49 AM, Sudhakar Anemu sudhakar.anemu@gmail.com
wrote:

Hi All,

I am trying to execute a small book to install httpd webserver. Coming
to node : I am using rhel6-Vagrant. can any one helps to resolve this issue
please. I am attaching kitchen and httpd.rb files. Please let me know if I
need to provide more details.


================================================================================

       Error executing action `install` on resource 'package[apr]'

================================================================================

       Chef::Exceptions::Package
       -------------------------
       No version specified, and no candidate version available for

apr

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb

        11:   package pkg do
        12:     action :install
        13:   end
        14: end

       Compiled Resource:
       ------------------
       # Declared in

/tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb:11:in `block in
from_file'

       package("apr") do
         action [:install]
         retries 0
         retry_delay 2
         guard_interpreter :default
         package_name "apr"
         timeout 900
         cookbook_name :"hello-world"
         recipe_name "httpd"
       end

<error.txt>
<.kitchen.yml>
<httpd.rb>

can you share dpkg -s apr after you manually install the package? chef
should be able to install the package if you can do that same manually
:-/. what distro/release you are using?

On Tue, Sep 8, 2015 at 10:13 AM, Sudhakar Anemu sudhakar.anemu@gmail.com
wrote:

manual installation is fine where I am looking to use chef to install.

On Tue, Sep 8, 2015 at 9:40 PM, Taylor Price tayworm@gmail.com wrote:

What happens when you try to install that package manually?

On Sep 8, 2015, at 7:49 AM, Sudhakar Anemu sudhakar.anemu@gmail.com
wrote:

Hi All,

I am trying to execute a small book to install httpd webserver. Coming
to node : I am using rhel6-Vagrant. can any one helps to resolve this issue
please. I am attaching kitchen and httpd.rb files. Please let me know if I
need to provide more details.


================================================================================

       Error executing action `install` on resource 'package[apr]'

================================================================================

       Chef::Exceptions::Package
       -------------------------
       No version specified, and no candidate version available for

apr

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb

        11:   package pkg do
        12:     action :install
        13:   end
        14: end

       Compiled Resource:
       ------------------
       # Declared in

/tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb:11:in `block in
from_file'

       package("apr") do
         action [:install]
         retries 0
         retry_delay 2
         guard_interpreter :default
         package_name "apr"
         timeout 900
         cookbook_name :"hello-world"
         recipe_name "httpd"
       end

<error.txt>
<.kitchen.yml>
<httpd.rb>