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: apt-get problems.
      ... >apt-get, lovely tool. ... unrelated to the program you are trying to install or upgrade, ... packages which depend on the package you have asked to remove. ... printer related kde app and much of kde itself just by hovering the ...
      (Debian-User)
    • 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)
    • Re: upgrade squeeze -> wheezy (issues)
      ... It seems that apt-get is doing a better job. ... The following packages will be REMOVED: ... python-aptdaemon python-aptdaemon.gtk3widgets python-avogadro ... openssh-client openssh-server openssl openssl-blacklist openvpn ...
      (Debian-User)