[Bug 185692] Re: pinning negative preferences not preventing installation

Marco Paolini 185692 at bugs.launchpad.net
Wed Jun 28 23:31:06 UTC 2017


*** This bug is a duplicate of bug 565364 ***
    https://bugs.launchpad.net/bugs/565364

this does not look like a duplicate of bug #565364

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/185692

Title:
  pinning negative preferences not preventing installation

Status in apt package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: apt

  I'm not sure if this is a problem with the documentation, or a problem
  with the application, however apt is not behaving as expected when
  pinning negative values.

  According to man 5 apt_preferences, a Pin-Priority "P < 0 prevents the
  version from being installed."

  Now I'll take a package at random and pin it in /etc/apt/preferences:
  Package: python-tcm
  Pin: version 0.5.1-0ubuntu4
  Pin-Priority: -100

  And yet, the package attempts to install:

  root at prizm:/tmp# apt-get -Vs install python-tcm
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following NEW packages will be installed:
     pessulus (2.16.3-0ubuntu1)
     python-tcm (0.5.1-0ubuntu4)
  0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  Inst python-tcm (0.5.1-0ubuntu4 Ubuntu:7.10/gutsy)
  Conf python-tcm (0.5.1-0ubuntu4 Ubuntu:7.10/gutsy)

  The same occurs with a generalized version (Pin: version *).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/185692/+subscriptions



More information about the foundations-bugs mailing list