I also have this problem with apt 0.7.9ubuntu17 on Ubuntu Hardy Heron. Pinning 
does not work as documented in "man apt_preferences"; I don't want to install a 
buggy/vulnerable version of libimlib2, so I pinned it this way:

---file:/etc/apt/preferences---
Package: libimlib2
Pin: version 1.4.0-1ubuntu1
Pin-Priority: -10
-------------end---------------

However, this failed to have any effect on the package's priority:

----------------------
$ apt-cache policy libimlib2
libimlib2:
  Installed: (none)
  Candidate: 1.4.0-1ubuntu1
  Package pin: 1.4.0-1ubuntu1
  Version table:
     1.4.0-1ubuntu1 -10
        500 http://us.archive.ubuntu.com hardy/main Packages
----------------------

In previous versions of apt, the changed priority (-10) would be listed
where the 500 is listed in the above output. Attempts to install a
package requiring that library may well bring in the buggy library:

-------------------------------------
:$ sudo apt-get -s install pypanel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libid3tag0 libimlib2 python-xlib
The following NEW packages will be installed:
  libid3tag0 libimlib2 pypanel python-xlib
0 upgraded, 4 newly installed, 0 to remove and 8 not upgraded.
Inst libid3tag0 (0.15.1b-10 Ubuntu:8.04/hardy)
Inst libimlib2 (1.4.0-1ubuntu1 Ubuntu:8.04/hardy)
Inst python-xlib (0.14-1 Ubuntu:8.04/hardy)
Inst pypanel (2.4-1.1build1 Ubuntu:8.04/hardy)
Conf libid3tag0 (0.15.1b-10 Ubuntu:8.04/hardy)
Conf libimlib2 (1.4.0-1ubuntu1 Ubuntu:8.04/hardy)
Conf python-xlib (0.14-1 Ubuntu:8.04/hardy)
Conf pypanel (2.4-1.1build1 Ubuntu:8.04/hardy)
-------------------------------------

Pinning does not work as described in "man apt_preferences," so there is
a bug in apt.


** Changed in: apt (Ubuntu)
       Status: New => Confirmed

-- 
pinning negative preferences not preventing installation
https://bugs.launchpad.net/bugs/185692
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to