Re: Configuring /etc/apt/preferences

From: Vincent Lefevre (vincent_at_vinc17.org)
Date: 04/25/04

  • Next message: Kenneth Macdoald Karlsen: "Re: kernel 2.6.X and cdrecord / xcdroast"
    Date: Sun, 25 Apr 2004 10:41:31 +0200
    To: Debian User List <debian-user@lists.debian.org>
    
    

    On 2004-04-23 20:39:27 +0200, Andrei Badea wrote:
    > I tried to change /etc/apt/preferences to this (one single rule):
    >
    > Package: *
    > Pin: origin ftp.cz.debian.org
    > Pin-Priority: 999
    >
    > in order to increase the priority, just to see what would happen.
    > Unfortunately nothing, on apt-cache policy I get the same list that I
    > posted before. All sources have the same priority 990. Maybe the
    > "origin" syntax is wrong?

    You probably need the scheme too (e.g. ftp://ftp.cz.debian.org)
    and possibly more (the full path after "deb" or "seb-src" in
    /etc/apt/sources.list). But I've never tried.

    > >This 990 may come from that [from apt_preferences(5)]:
    > >
    > > priority 990
    > > to the versions that are not installed and belong to the target
    > > release.
    > >
    > >(whatever the source...).
    >
    > Indeed, I set the target release to unstable in apt.conf.

    I avoid that by not using any target release in apt.conf, as it is
    useless (and possibly harmful[*]) when using preferences.

    [*] For instance, this could prevent security updates from being applied.

    My /etc/apt/preferences file:

    Package: *
    Pin: release a=stable
    Pin-Priority: 900

    Package: *
    Pin: release a=testing
    Pin-Priority: 900

    Package: *
    Pin: release a=unstable
    Pin-Priority: 200

    to track both stable and testing by default (the testing version is
    more recent, so that I get this one, except when the versions in stable
    and testing are the same and there is a security update, in which case
    I get this security update). And I allow unstable packages, which I can
    install with "apt-get install -t unstable".

    -- 
    Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
    100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
    Championnat International des Jeux Mathématiques et Logiques, etc.
    Work: CR INRIA - computer arithmetic / SPACES project at LORIA
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Kenneth Macdoald Karlsen: "Re: kernel 2.6.X and cdrecord / xcdroast"

    Relevant Pages

    • Re: she wants to plot chief hints as opposed to Ayns temple
      ... alter you some of my increasing pitys. ... She can pin enough if ... Beth's priority isn't emotional. ...
      (sci.crypt)
    • Pinning to testing
      ... from now on, I'd like to be tracking sarge, but certain packages should ... Pin: release a=unstable ... Pin-Priority: 302 ...
      (Debian-User)
    • Re: Apt problem
      ... Naitik. ... No priority (or zero) specified for pin ...
      (Debian-User)
    • Re: mplayer
      ... Explanation: base os ... Package: * ... Pin-Priority: 998 ... Pin: release c=core ...
      (Fedora)
    • dependency handling of mixed system using aptitude
      ... I am keeping a stable/testing mixed system using pinning with ... Pin-Priority: 600 ... Pin: release a=testing ... But that doesn't work because the dependencies are still tied to ...
      (Debian-User)