Apt preferences: How to avoid a specific version of a package?

kimiko_at_brokenmoon2.xs4all.nl
Date: 10/06/03

  • Next message: Mental Patient: "Re: Debian-based distros ??"
    Date: Mon, 6 Oct 2003 19:46:59 +0200
    To: debian-user@lists.debian.org
    
    

    How can I keep apt-get from trying specific versions of some
    packages when doing a dist-upgrade?

    I have unstable as default in apt.conf, so that gets priority
    990. Then I have assigned priority 995 to experimental in
    preferences so that apt-get will upgrade to the latest and
    greatest (-pain-in-the-behind, sometimes :o) versions
    available there. However, some packages from experimental
    don't work correctly (as can be expected of course). I can
    downgrade to the unstable version manually, that is not the
    problem, but how do I keep apt-get from upgrading it again
    to that same version at the next run?

    For example, the 2.3.2.ds1-1 version of libc6 from experimental
    makes lots of programs crash, so I don't want that particular
    version installed. However, I do want to keep tracking unstable
    and experimental when a newer version is uploaded. So I can't
    just pin libc6 to version 2.3.2-8 or release a=unstable.

    I tried to do this by adding lines such as these to preferences:
    |Package: packagename
    |Pin: version bad-version-number
    |Pin-Priority: -10
    because the apt_preferences man page says this will prevent that
    version from being installed. This does not work. apt-get keeps
    trying to install the bad version.

    Is there another way I'm overlooking?

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Mental Patient: "Re: Debian-based distros ??"

    Relevant Pages

    • Re: Updates SOLVED!
      ... Putting Synaptic to one side, and after having done the apt-get update, ... problems with the vlc package, ... Then an apt-get install vlc may have printed out some usefull info. ... We've already confirmed that if you originally got vlc from freshrpms, the maintainer should be shown as Matthias Saou, so the packages above should also show him as the maintainer. ...
      (Fedora)
    • Package installation errors
      ... #apt-get upgrade ... You might want to run 'apt-get -f install' to correct these: ... The following packages have unmet dependencies: ... Try 'apt-get -f install' with no packages. ...
      (Debian-User)
    • Re: RH 9.0, Putting Samba on Linux with RPM?
      ... If not then, ask them to assist you in upgrading the RHL9 packages, you ... the apt-get /etc/apt/sources.list file is already configured to use the ... This command will update your install RPM packages to the latest ones ...
      (linux.redhat.misc)
    • sarge dist-upgrade "Package is in a very bad inconsistent state"
      ... You might want to run `apt-get -f install' to correct these: ... Try 'apt-get -f install' with no packages. ... postgresql postgresql-client ...
      (Debian-User)
    • Re: stable to testing: aptitude wants strange things
      ... apt-get turns out to be mostly the same. ... Now both apt-get and aptitude want to remove aptitude. ... The following packages will be REMOVED: ... modconf openssl python-central python-minimal python-support ...
      (Debian-User)