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

Bug#216688: apt/preferences: pinning a single package version to prevent upgrades does not work



Package: apt
Version: 0.5.23
Severity: normal
Followup-For: Bug #216688

I'm trying to prevent apt from upgrading mozilla-firefox to version
0.8-4 which is broken (#238318).  I do not want to hold it with
dpkg/aptitude, because I want apt to upgrade it to 0.8-5 when that one
is released.  So I created the following /etc/apt/preferences file:

  Package: mozilla-firefox
  Pin: version 0.8-4
  Pin-Priority: -10

(That file does not contain anything else.  I also have

  APT::Default-Release "stable";

in /etc/apt/apt.conf, but it should not matter since mozilla-firefox
does not exist in stable.)

Unfortunately apt still wants to upgrade mozilla-firefox.  Here's the
output of apt-cache policy mozilla-firefox:

  mozilla-firefox:
    Installed: 0.8-3
    Candidate: 0.8-4
    Package Pin: 0.8-4
    Version Table:
       0.8-4 -10
          500 http://debian.balt.net unstable/main Packages
   *** 0.8-3 -10
          500 http://debina.ktu.lt testing/main Packages
          500 http://debina.ktu.lt unstable/main Packages
          500 http://debian.balt.net testing/main Packages
          100 /var/lib/dpkg/status

Note that the priority -10 seems to be applied to version 0.8-3 as well
for some reason (if it were just a display bug, apt wouldn't try
upgrading, right?).

This seems to be the same bug as #216688, except that mozilla-firefox is
not an essential package.

-- System Information:
Debian Release: 3.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.24-mg2
Locale: LANG=C, LC_CTYPE=lt_LT.UTF-8

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.3.3-3    GCC support library
ii  libstdc++5                  1:3.3.3-3    The GNU Standard C++ Library v3

-- no debconf information

Marius Gedminas
-- 
You have moved the mouse. NT must be restarted for the changes to take effect.



Reply to: