Bug#522276: apt-get dist-upgrade ignores some downgrades when pinning
Package: apt
Version: 0.7.20.2
Severity: normal
Working in a somewhat strange environment I have a private repository
that includes some (deliberately) out of date packages. I use a pin in
order to get apt to use my packages in preference to the standard ones.
apt-cache policy shows that my packages are candidates for use, for
example:
# apt-cache policy dpkg
dpkg:
Installed: 1.14.25
Candidate: 1.14.22.ssi1
Version table:
*** 1.14.25 0
500 http://ftp.fr.debian.org lenny/main Packages
100 /var/lib/dpkg/status
1.14.22.ssi1 0
1001 http://deb.openssi.org lenny/openssi Packages
And
# apt-cache policy udev
udev:
Installed: 0.125-7
Candidate: 0.080-1
Version table:
*** 0.125-7 0
500 http://ftp.fr.debian.org lenny/main Packages
100 /var/lib/dpkg/status
0.080-1 0
1001 http://deb.openssi.org lenny/openssi Packages
If I try to do a apt-get dist-upgrade it will try to downgrade some
packages, but not all. Why?
# apt-get dist-upgrade
Script started on Thu 02 Apr 2009 11:23:37 AM CEST
lenny-node1:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
selinux-policy-refpolicy-targeted
The following NEW packages will be installed:
libcluster
The following packages will be upgraded:
bsdutils libc6 libc6-dev libc6-i686 locales mount util-linux
The following packages will be DOWNGRADED:
dpkg dpkg-dev dselect e2fslibs e2fsprogs grub initscripts libblkid1
libcomerr2 libss2 libuuid1 logrotate portmap procps strace sysv-rc sysvinit
sysvinit-utils
7 upgraded, 1 newly installed, 18 downgraded, 1 to remove and 1 not upgraded.
Need to get 20.2MB of archives.
After this operation, 32.3MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
lenny-node1:~# exit
Script done on Thu 02 Apr 2009 11:23:56 AM CEST
Notice it didn't want to upgrade udev?
If I manualy try to install udev it does say it's going to downgrade.
This used to work (on Etch and Sarge).
I know that downgrades are not recommended, but this is rather a bore.
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::Get "";
APT::Get::AllowUnauthenticated "true";
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";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
-- /etc/apt/preferences --
Package: *
Pin: origin deb.openssi.org
Pin-Priority: 1001
-- /etc/apt/sources.list --
#
deb http://ftp.fr.debian.org/debian/ lenny main contrib
deb-src http://ftp.fr.debian.org/debian/ lenny main contrib
# deb http://ftp.fr.debian.org/debian/ experimental main
# deb-src http://ftp.fr.debian.org/debian/ experimental main
deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
deb http://deb.openssi.org/test lenny openssi
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt depends on:
ii debian-archive-keyring 2009.01.31 GnuPG archive keys of the Debian a
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none> (no description available)
ii aptitude 0.4.11.11-1~lenny1 terminal-based package manager
ii bzip2 1.0.5-1 high-quality block-sorting file co
ii dpkg-dev 1.14.25 Debian package development tools
ii lzma 4.43-14 Compression method of 7z format in
pn python-apt <none> (no description available)
-- no debconf information
Reply to: