If you try to install puppet on ubuntu 12.04 precise, it will eventually fail like this:
# apt-get install puppet
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
puppet : Depends: puppet-common (= 2.7.11-1ubuntu2.1) but it is not going to be installed
Depends: ruby1.8 but it is not going to be installed
Recommends: rdoc
E: Unable to correct problems, you have held broken packages.
The puppet team provides a very easy and convenient way to get the latest version of puppet with apt-get
on your ubuntu
distribution. This will enable you to install the latest puppet version (3.x at the time of writing).
There are 3 steps needed:
Load a .deb
file, which fits to your release codename. This is precise on ubuntu 12.04.
# wget http://apt.puppetlabs.com/puppetlabs-release-`lsb_release --codename --short`.deb
Then install the .deb
file and update the source files:
# dpkg -i puppetlabs-release-`lsb_release --codename --short`.deb
Now update the sources list for apt:
# apt-get update
That's it.
Now you can install/ugprade the puppet agent with:
# apt-get install puppet
and the puppet master with:
Now you can install/ugprade the puppet agent with:
# apt-get install puppet-master