Installing specific version of Puppet on Ubuntu

Soldato
Joined
18 May 2010
Posts
22,376
Location
London
Any one know how I can install a specific version of puppet on Ubuntu?

I think I am looking for version 3.4 and older.

The version we are running at work on RHEL 6 is 3.4.2 so I would like the same but for Ubuntu.

I installed the latest version on my Ubuntu 16.04.2 but it is telling me some of my code is deprecated so I am stuck.

I need to downgrade to a compatible version.

It's surprising difficult to find older deb's.

---

I've tried the following with no joy so far:

apt-cache showpkg puppet

apt-get install puppet=3.4.2-1puppetlabs1

Then I get a message:

The following packages have unmet dependencies.
puppet : Depends: puppet-common (= 3.4.2-1puppetlabs1) but 3.8.5-2ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.
 
Last edited:
Soldato
Joined
18 Oct 2002
Posts
18,296
Location
Brighton
Code:
apt-cache showpkg puppet


would have probably shown you ony 3.8.5 is available from the xenial repo, you could try adding trusty sources:

Code:
# create a new sources file

sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/trusty.list

# change xenial to trusty in the sources file

sudo perl -pi -e 's/xenial/trusty/g' /etc/apt/sources.list.d/trusty.list

sudo apt-get update

# this will show you the available packages

sudo apt-cache madison puppet
sudo apt-cache madison puppet-common


3.4.3 is available on trusty, this is as close as you can get from the official repo:

Code:
sudo apt-get install puppet=3.4.3-1ubuntu1.2 puppet-common=3.4.3-1ubuntu1.2
 
Back
Top Bottom