Hi Albert,

I tested this quickly on my system and it seems to work fine here. Can you
share more details (puppet version, other installed modules) of your system?


Cheers, David

Puppet 3:

david@davids:~/git/tmp/foo$ bundle exec puppet module install
puppetlabs-apt --version 2.4.0
Notice: Preparing to install into /home/david/.puppet/modules ...
Notice: Created target directory /home/david/.puppet/modules
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/home/david/.puppet/modules
└─┬ puppetlabs-apt (v2.4.0)
  └── puppetlabs-stdlib (v4.24.0)
david@davids:~/git/tmp/foo$ bundle exec puppet module upgrade
puppetlabs-apt
Notice: Preparing to upgrade 'puppetlabs-apt' ...
Notice: Found 'puppetlabs-apt' (v2.4.0) in /home/david/.puppet/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Upgrading -- do not interrupt ...
/home/david/.puppet/modules
└── puppetlabs-apt (v2.4.0 -> v4.4.1)
david@davids:~/git/tmp/foo$ bundle exec puppet module list
/home/david/.puppet/modules
├── puppetlabs-apt (v4.4.1)
└── puppetlabs-stdlib (v4.24.0)
david@davids:~/git/tmp/foo$

Puppet 4:

david@davids:~/git/tmp/foo$ bundle exec puppet module install
puppetlabs-apt --version 2.4.0
Notice: Preparing to install into /home/david/.puppetlabs/etc/code/modules
...
Notice: Created target directory /home/david/.puppetlabs/etc/code/modules
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/home/david/.puppetlabs/etc/code/modules
└─┬ puppetlabs-apt (v2.4.0)
  └── puppetlabs-stdlib (v4.24.0)
david@davids:~/git/tmp/foo$ bundle exec puppet module upgrade
puppetlabs-apt
Notice: Preparing to upgrade 'puppetlabs-apt' ...
Notice: Found 'puppetlabs-apt' (v2.4.0) in
/home/david/.puppetlabs/etc/code/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Upgrading -- do not interrupt ...
/home/david/.puppetlabs/etc/code/modules
└── puppetlabs-apt (v2.4.0 -> v4.4.1)
david@davids:~/git/tmp/foo$ bundle exec puppet module list
/home/david/.puppetlabs/etc/code/modules
├── puppetlabs-apt (v4.4.1)
└── puppetlabs-stdlib (v4.24.0)
/opt/puppetlabs/puppet/modules (no modules installed)
david@davids:~/git/tmp/foo$


Puppet 5:

david@davids:~/git/tmp/foo$ bundle exec puppet module install
puppetlabs-apt --version 2.4.0
Notice: Preparing to install into /home/david/.puppetlabs/etc/code/modules
...
Notice: Created target directory /home/david/.puppetlabs/etc/code/modules
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: VersionRanges will always be strict when using non-vendored
SemanticPuppet gem, version 1.0.1
Notice: Installing -- do not interrupt ...
/home/david/.puppetlabs/etc/code/modules
└─┬ puppetlabs-apt (v2.4.0)
  └── puppetlabs-stdlib (v4.24.0)
david@davids:~/git/tmp/foo$ bundle exec puppet module upgrade
puppetlabs-apt
Notice: Preparing to upgrade 'puppetlabs-apt' ...
Notice: Found 'puppetlabs-apt' (v2.4.0) in
/home/david/.puppetlabs/etc/code/modules ...
Notice: VersionRanges will always be strict when using non-vendored
SemanticPuppet gem, version 1.0.1
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Upgrading -- do not interrupt ...
/home/david/.puppetlabs/etc/code/modules
└── puppetlabs-apt (v2.4.0 -> v4.4.1)
david@davids:~/git/tmp/foo$ bundle exec puppet module list
Notice: VersionRanges will always be strict when using non-vendored
SemanticPuppet gem, version 1.0.1
/home/david/.puppetlabs/etc/code/modules
├── puppetlabs-apt (v4.4.1)
└── puppetlabs-stdlib (v4.24.0)
/opt/puppetlabs/puppet/modules (no modules installed)
david@davids:~/git/tmp/foo$


On Wed, Dec 13, 2017 at 1:26 PM Albert Shih <[email protected]> wrote:

> Hi everyone.
>
> I'm not sure if it's a bug or what. Here what puppet module list give me :
>
> ├── puppetlabs-apt (v2.4.0)
> ├── puppetlabs-stdlib (v4.24.0)
>
> but if I try to upgrade puppetlabs-apt they say
>
> Notice: Downloading from https://forgeapi.puppet.com ...
> Error: Could not upgrade module 'puppetlabs-apt' (v2.4.0 -> latest)
>   There are 7 newer versions
>     No combination of dependency upgrades would satisfy all dependencies
>     Dependencies will not be automatically upgraded across major versions
>     Upgrading one or more of these modules may permit the upgrade to
> succeed:
>     - puppetlabs-stdlib
>     Use `puppet module upgrade --force` to upgrade only this module
>
> but puppetlabs-stdlib is already at the last version (just check).
>
> And if I download the puppetlabs-apt and check inside de metadata.json I
> find out :
>
>   "dependencies": [
>     {
>       "name": "puppetlabs/stdlib",
>       "version_requirement": ">= 4.16.0 < 5.0.0"
>     }
>   ],
>
> and as I know 4.24.0 match the version_requirement....
>
> Regards
> --
> Albert SHIH
> xmpp: [email protected]
> Heure local/Local time:
> Wed Dec 13 14:21:53 CET 2017
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/20171213132625.GE1516%40io.chezmoi.fr
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALF7fHZLM51NdzNUyYRpTq%3DALW_NFvtLQLwWja9%2B%2BpLHsyYWiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to