Julian, thank you for your work for Ubuntu and Debian.  But may I
suggest you are a bit more careful marking invalid when there are at
least a good half dozen people telling you here and in the Debian BTS
that there is a problem?  It's always safe to ask for more feedback
before pulling the trigger.

This is of course a very valid bug.  Here is the proof.  I say that as
somebody who is always struggling to get pinning right, though.  It's a
great tool but not always user-friendly and idiot-proof ;-)  If I am not
mistaken, you are struggling with pinning yourself ;-)  Your example is
actually not really showing anything.  1.7.4p4-5ubuntu7 would have been
preferred and installed over 1.7.4p4-5ubuntu6 anyway without any
pinning.

$ cat /etc/apt/preferences.d/canonical-partner
Package: acroread
Pin: origin archive.canonical.com
Pin-Priority: 10

$ apt-cache policy acroread
acroread:
  Installed: 9.3.3-0.0
  Candidate: 9.4.2-0lucid1
  Package pin: 9.4.2-0lucid1
  Version table:
     9.4.2-0lucid1 10
        500 http://archive.canonical.com/ubuntu/ lucid/partner Packages
 *** 9.3.3-0.0 10
        200 http://private-repo/deb-private/ ./ Packages
        100 /var/lib/dpkg/status
$ sudo sed -i s/acroread/\*/ /etc/apt/preferences.d/canonical-partner
$ cat /etc/apt/preferences.d/canonical-partner
Package: *
Pin: origin archive.canonical.com
Pin-Priority: 10

$ apt-cache policy acroread
acroread:
  Installed: 9.3.3-0.0
  Candidate: 9.3.3-0.0
  Version table:
     9.4.2-0lucid1 0
         10 http://archive.canonical.com/ubuntu/ lucid/partner Packages
 *** 9.3.3-0.0 0
        200 http://private-repo/deb-private/ ./ Packages
        100 /var/lib/dpkg/status
$ sudo rm /etc/apt/preferences.d/canonical-partner
$ apt-cache policy acroread
acroread:
  Installed: 9.3.3-0.0
  Candidate: 9.4.2-0lucid1
  Version table:
     9.4.2-0lucid1 0
        500 http://archive.canonical.com/ubuntu/ lucid/partner Packages
 *** 9.3.3-0.0 0
        200 http://private-repo/deb-private/ ./ Packages
        100 /var/lib/dpkg/status

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

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

Title:
  pinning a specific package does not work

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

Reply via email to