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

[1] - http://jaqque.sbih.org/kplug/apt-pinning.html

HTH

On Tue, Feb 16, 2016 at 3:44 PM, Mamun Rashid <mamun...@gmail.com> wrote:

> 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!!
>
> --
> 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+unsubscr...@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
> <https://groups.google.com/d/msgid/puppet-users/99ec6c49-89ef-48f0-907e-4b4789adec7e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matthaus Owens
Puppet Labs

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACD%3DwAfvLfPjd5dK6cxvkpi1M%3DK1U%3DQvUa03_b%3D7F%2B_gZ%3DsVQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to