I guess your best workaround then is to pin the package and all it's
dependencies to backports.

On Thu, Dec 22, 2011 at 18:16, Matt Zagrabelny <mzagr...@d.umn.edu> wrote:

> On Thu, Dec 22, 2011 at 7:32 AM, Matt Zagrabelny <mzagr...@d.umn.edu>
> wrote:
> > On Thu, Dec 22, 2011 at 3:31 AM, Walter Heck <walterh...@gmail.com>
> wrote:
> >>
> >>
> >> On Thu, Dec 22, 2011 at 11:19, Tom De Vylder <t...@penumbra.be> wrote:
> >>>
> >>> How about this:
> >>>
> >>> package { 'puppetmaster/squeeze-backports':
> >>>  ensure => installed,
> >>> }
> >>>
> >>> Looks a lot easier to me. It takes all the dependencies it needs from
> >>> squeeze when available.
> >>> If it can't find any suitable dependencies it will try to use backports
> >>> instead, but only for the requested package.
> >>
> >>
> >> Is that documented behaviour?
> >
> > It is documented in apt(-get/itude). From the man page:
> >
> > install pkg [ { =pkg_version_number | /target_release } ]
> >
> >
> > Thanks for the good hints Tom and Walter.
> >
> > -mz
>
> Unfortunately, no dice.
>
> Dec 22 10:03:15 acasupport-web puppet-agent[32729]:
>
> (/Stage[main]/Request_tracker4::Install/Package[request-tracker4/squeeze-backports]/ensure)
> change from purged to present failed: Execution of '/usr/bin/apt-get
> -q -y -o DPkg::Options::=--force-confold install
> request-tracker4/squeeze-backports' returned 100: Reading package
> lists...
> Building dependency tree...
> Reading state information...
> 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:
>  request-tracker4 : Depends: libdbix-searchbuilder-perl (>= 1.59) but
> 1.56-1 is to be installed
>                    Depends: liblog-dispatch-perl (>= 2.23) but 2.22-1
> is to be installed
>                    Depends: libhtml-rewriteattributes-perl (>= 0.04)
> but 0.03-1 is to be installed
>                    Depends: libplack-perl (>= 0.9971) but 0.9941-1 is
> to be installed
> E: Broken packages
> Dec 22 10:03:15 acasupport-web puppet-agent[32729]:
>
> (/Stage[main]/Request_tracker4::Install/Package[rt4-db-postgresql/squeeze-backports])
> Dependency Package[request-tracker4/squeeze-backports] has failures:
> true
> Dec 22 10:03:15 acasupport-web puppet-agent[32729]:
>
> (/Stage[main]/Request_tracker4::Install/Package[rt4-db-postgresql/squeeze-backports])
> Skipping because of failed dependencies
>
> From Martin Krafft's Debian book:
>
> apt-get install package/release
> apt-get install package=version
>
> "Both of these methods have the inherit problem that the release or
> version selection only applies to the package for which has been
> specified. If the package defines dependencies that can only be
> satisfied from the same source, APT gives up."
>
> Later on Krafft reports:
>
> "A better way to control the source archive to be used for
> installations and upgrades is to override the default (or target)
> release... provide the --target-release (-t) switch for this
> purpose.)"
>
> Thus,
>
>  apt-get -t target install package
>
> is different from
>
>  apt-get install package/target
>
> Back to the drawing board...
>
> -mz
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>


-- 
Walter Heck

--
follow @walterheck on twitter to see what I'm up to!
--
Check out my new startup: Server Monitoring as a Service @
http://tribily.com
Follow @tribily on Twitter and/or 'Like' our Facebook page at
http://www.facebook.com/tribily

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to