apt-get install puppetserver fails with error: packages have unmet dependencies: Depends: puppet-common (>= 3.7.3-1puppetlabs1) but 3.7.0-1puppetlabs1 is to be installed Depends: puppet (>= 3.7.3-1puppetlabs1)

741 views
Skip to first unread message

Mamun Rashid

unread,
Feb 16, 2016, 7:12:04 PM2/16/16
to Puppet Users

I am trying to install puppet server on an ec2 ubuntu instance>


I get: ubuntu@ip-172-31-43-240:~$ sudo apt-get install puppetserver 


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: 

puppetserver : Depends: puppet-common (>= 3.7.3-1puppetlabs1) but 3.7.0-1puppetlabs1 is to be installed 

Depends: puppet (>= 3.7.3-1puppetlabs1) but 3.7.0-1puppetlabs1 is to be installed


 E: Unable to correct problems, you have held broken packages. ubuntu@ip-172-31-43-240:~$


BUT , I have

ubuntu@ip-172-31-43-240:~$ sudo apt-get install puppet-common 


Reading package lists... Done Building dependency tree 

Reading state information... Done 

puppet-common is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. 

ubuntu@ip-172-31-43-240:~$



I got the package this way:

 wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb

sudo dpkg -i puppetlabs-release-trusty.deb

sudo apt-get install puppetserver

__________________________________________



I tried purging puppet-common and reinstalling it. I have also tried sudo apt-get upgrade.

Any help will be appreciated. Thanks!!

Matthaus Owens

unread,
Feb 16, 2016, 7:57:48 PM2/16/16
to Puppet Users
There are a couple of possibilities for what could be going on. First, I don't see any calls to `apt-get update`. After adding a new apt source running `apt-get update` is needed for apt to find any new packages in that repository.
The second possibility is that you have an apt-pin in place[1]. If you could paste the output of `apt-cache policy puppet-common`, that would help to see what is going on.

A side note here: if you are trying to install the latest version of puppet and puppetserver, you'll want to be using the PC1 repos and not the main repos. There is documentation for them available here: https://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#apt-based-systems


HTH

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/99ec6c49-89ef-48f0-907e-4b4789adec7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matthaus Owens
Puppet Labs
Reply all
Reply to author
Forward
0 new messages