[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt: pin: how to debug?



>>>>> "Matt" == Matt Zimmerman <mdz@debian.org> writes:

    Matt> deity@lists.debian.org is probably the place to ask about
    Matt> this, but if you're trying to get a lower version to
    Matt> override a higher one, you'll need to use a pin priority
    Matt> greater than 1000, as documented in apt_preferences(5).

No. You only need a priority greater then 1000 to force a package to
be downgraded.

I use priority 600 here for stable, and stable packages definitely
take priority over unstable packages (but not if the version installed
is from unstable).

Back to the original question: I would really like to be able to
get a list of where a package exists, and what priority each location
has. eg. (made up example, has no real life value):

# doit x
security.debian.org debian stable/main x 0.5.0   600
ftp.debian.org      debian stable/main x 0.4.9   600
ftp.debian.org      debian unstable/main x 0.5.2  <default>
ftp.helix.org       helix unstable/main x 0.5.1   700

this would enable you to clearly see what versions are available,
and why apt-get has chosen one over the other.

For instance, in the above case the helix code would get installed.
But what happens if helix decides to drop that package (as seems to
have occurred for aalib1)? Then apt-get would try to install the
unstable version instead, because it can't install the stable version
because this would require a downgrade. This is difficult to determine
manually, some automatic way would be good.

You could get some of this information from
http://packages.debian.org/x, but only for Debian sources. I would
like some way to do it on my local computer from information already
downloaded with the latest apt-get update.
-- 
Brian May <bam@debian.org>



Reply to: