Issue #19722 has been reported by Michael Steger. ---------------------------------------- Bug #19722: broken debian package on apt.puppetlabs.com / shebang change https://projects.puppetlabs.com/issues/19722
Author: Michael Steger Status: Closed Priority: Normal Assignee: Matthaus Owens Category: Debian Target version: Affected Puppet version: 2.7.21 Keywords: debian packaging apt.puppetlabs.com Branch: http://apt.puppetlabs.com/pool/wheezy/main/p/puppet/puppet-common_2.7.21-1puppetlabs1_all.deb has the following properties: $ dpkg -I puppet-common_2.7.21-1puppetlabs1_all.deb | grep Dep Depends: ruby1.8, libxmlrpc-ruby, libopenssl-ruby, libshadow-ruby1.8, libaugeas-ruby1.8, adduser, facter (>= 1.5), facter (<< 2.0), lsb-base, sysv-rc (>= 2.86) | file-rc $ dpkg -c puppet-common_2.7.21-1puppetlabs1_all.deb | grep puppet.rb -rw-r--r-- root/root 2831 2013-03-11 18:36 ./usr/lib/ruby/1.8/puppet.rb But once installed I noticed that: grep '^#!' /usr/bin/puppet /usr/sbin/puppetd /usr/bin/puppet:#!/usr/bin/ruby1.9.1 /usr/sbin/puppetd:#!/usr/bin/ruby1.9.1 Which yields the following error if you happen to not have ruby1.9.1 installed: # /etc/init.d/puppetmaster start Starting puppet masterstart-stop-daemon: unable to start /usr/bin/puppet (No such file or directory) failed! And this one once it's installed: # /etc/init.d/puppetmaster start /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- puppet/util/command_line (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/bin/puppet:3:in `<main>' It's not the first time I found broken packages on apt.puppetlabs.com. It is the same Issue like that https://projects.puppetlabs.com/projects/puppet/issues/17777 . Workaround: sed -i 's/ruby1.9.1/ruby1.8/g' /usr/bin/puppet /usr/sbin/puppetd && service puppet start -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
