Bug#317186: apt: This happens to me too
Package: apt
Version: 0.6.43.3
Followup-For: Bug #317186
I am seeing this too:
If I specify the wildcard '*' as the package:
Package: *
Pin: origin www.fbriere.net
Pin-Priority: -1
then I get the desired result:
$ apt-cache policy vmware
vmware:
Installed: 5.5.1-19175-1
Candidate: 5.5.1-19175-1
Version table:
1:0fbriere.1 0
-1 http://www.fbriere.net Packages
*** 5.5.1-19175-1 0
100 /var/lib/dpkg/status
However, if I specify 'vmware' as the package name:
Package: vmware
Pin: origin www.fbriere.net
Pin-Priority: -1
then the pin no longer sticks:
$ apt-cache policy vmware
vmware:
Installed: 5.5.1-19175-1
Candidate: 1:0fbriere.1
Package pin: 1:0fbriere.1
Version table:
1:0fbriere.1 -1
500 http://www.fbriere.net Packages
*** 5.5.1-19175-1 -1
100 /var/lib/dpkg/status
I notice also that the number after the version number of the output of
apt-cache policy changes to '-1'... the man page for apt-cache does not
explain what it means. This is the first time I have seen it displaying
anything other than '0'. Anyone know what this means?
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Periodic "";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "1";
APT::Periodic::Update-Package-Lists "1";
APT::Archives "";
APT::Archives::MaxAge "7";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "1";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";
DPkg::Post-Invoke:: "if [ -x /usr/sbin/localepurge ] && [ $(ps w -p $PPID | grep -c remove) != 1 ]; then /usr/sbin/localepurge; else exit 0; fi";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi";
-- /etc/apt/preferences --
Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 540
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 530
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 520
Package: *
Pin: release o=Debian,a=experimental
Pin-Priority: 510
Package: *
Pin: origin wine.sourceforge.net
Pin-Priority: 600
Package: *
Pin: release o=Christian Marillat,a=testing
Pin-Priority: 600
Package: *
Pin: release o=robots.org.uk
Pin-Priority: 600
Package: vmware
Pin: origin www.fbriere.net
Pin-Priority: 50
-- /etc/apt/sources.list --
# sarge
deb http://ftp.de.debian.org/debian/ sarge main contrib non-free
deb-src http://ftp.de.debian.org/debian/ sarge main contrib non-free
deb http://security.debian.org/ sarge/updates main contrib non-free
deb-src http://security.debian.org/ sarge/updates main contrib non-free
# etch
deb http://ftp.de.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.de.debian.org/debian/ etch main contrib non-free
# unstable
deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free
#experimental
deb http://ftp.de.debian.org/debian/ experimental main contrib non-free
deb-src http://ftp.de.debian.org/debian/ experimental main contrib non-free
#mplayer
deb ftp://ftp.nerim.net/debian-marillat/ sarge main
deb-src ftp://ftp.nerim.net/debian-marillat/ sarge main
deb http://tonelli.sns.it/pub/mplayer/etch ./
#deb http://tonelli.sns.it/pub/mplayer/sarge ./
# vmware, emulation stuff
deb http://www.fbriere.net/debian/dists/sarge/ /
#deb-src http://www.fbriere.net/debian/dists/sarge/ /
# mentors
deb-src http://mentors.debian.net/debian/ unstable main
# my stuff
#deb http://robots.org.uk/debian sarge main
deb file:/home/sam/Documents/robots.org.uk/site/public_html/debian sarge main
# slime
#deb http://commonwerx.org/software/contrib/slime/deb ./
# lisp stuff
#deb http://people.debian.org/~pvaneynd/cl-sarge-packages ./
# wine
deb http://wine.sourceforge.net/apt binary/
# xorg
#deb http://people.debian.org/~nobse/xorg-x11/ sarge main
# django
deb http://www.sommitrealweird.co.uk/debian/ unstable django
deb http://www.sommitrealweird.co.uk/debian/ stable django
# fuseftp
#deb http://debian.jox.be ./
# thunderbird
deb http://people.debian.org/~asac/experimental/ ./
# vim: set nowrap
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.15-1-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages apt depends on:
ii libc6 2.3.5-13 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.2-9 GCC support library
ii libstdc++6 4.0.2-9 The GNU Standard C++ Library v3
-- no debconf information
Reply to: