Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

returned 1: Error: Nothing to do

Whenever I try and install multiple packages together, I receive the following returned 1: Error: Nothing to do

puppet apply --debug

Debug: Executing '/usr/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'
Debug: Prefetching parsed resources for host
Debug: /Schedule[never]: Skipping device resources because running on a host
Debug: Executing '/bin/rpm -q  expat-devel xmlrpc-epi  --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}
'
Debug: Package[ expat-devel xmlrpc-epi ](provider=yum): Ensuring => latest
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y install  expat-devel xmlrpc-epi '
Error: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install  expat-devel xmlrpc-epi ' returned 1: Error: Nothing to do

Error: /Stage[main]//Package[ expat-devel xmlrpc-epi ]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install  expat-devel xmlrpc-epi ' returned 1: Error: Nothing to do

Debug: /Schedule[weekly]: Skipping device resources because running on a host
Debug: /Schedule[puppet]: Skipping device resources because running on a host

Here is my puppet file

$centos_packages= [ 'gcc-c++', 'libxml2-devel', 'openssl-devel', 'ncurses', 'ncurses-devel', 'automake', 'libtool', 'libtool-ltdl-devel', 'expat-devel','xmlrpc-epi' ]


case $osfamily {
  'RedHat': {
    package { "$centos_packages":
      ensure    => installed, 
    }
  }
  default: { fail("${::osfamily} not supported yet, use RedHat or Susa")
  }
}

According to the puppet cookbooks, installing multiple packages together should be valid. I have used it in the past with no problems.

http://www.puppetcookbook.com/posts/install-multiple-packages.html