Bug#599790: Adding entries to /etc/apt/preferences "unholds" packages
Package: apt
Version: 0.7.20.2+lenny2
Severity: normal
I have an installed kernel package held:
# aptitude search "~ahold"
ihA linux-image-2.6.26-2-amd64 - Linux 2.6.26 image on AMD64
ih linux-image-amd64 - Linux for 64-bit PCs (meta-package)
As expected, this means the kernel is not updated by default:
# aptitude safe-upgrade -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Would download/install/remove packages.
...even though an update is available:
# apt-cache policy linux-image-2.6.26-2-amd64
linux-image-2.6.26-2-amd64:
Installed: 2.6.26-25
Candidate: 2.6.26-25lenny1
...
However, if we add the preferences lines to ensure that we are notified
about any updated backports packages:
# cat /etc/apt/preferences
Package: *
Pin: release a=lenny-backports
Pin-Priority: 200
...it breaks the hold on the kernel packages:
# aptitude safe-upgrade -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages have been kept back:
roundcube roundcube-core{a} roundcube-sqlite{a}
The following packages will be upgraded:
linux-image-2.6.26-2-amd64
1 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B/21.0MB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] n
Abort.
-- 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::Cache-Limit "25165824";
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";
Acquire "";
Acquire::http "";
Acquire::http::Proxy "http://127.0.0.1:3142";
-- (no /etc/apt/preferences present) --
-- /etc/apt/sources.list --
#########################################
### This file is maintained by Puppet ###
#########################################
# Any manual edits will be overwritten! #
#########################################
deb http://ftp.uk.debian.org/debian/ lenny main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ lenny main non-free contrib
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://ftp.uk.debian.org/debian-volatile/ lenny/volatile main contrib non-free
deb http://volatile.debian.org/debian-volatile lenny/volatile-sloppy main contrib non-free
deb http://debian.tiger-computing.co.uk/ lenny main contrib non-free
deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free
-- System Information:
Debian Release: 5.0.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt depends on:
ii debian-archive-keyring 2010.08.28~lenny1 GnuPG archive keys of the Debian a
ii libc6 2.7-18lenny4 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+lenny1 high-quality block-sorting file co
ii dpkg-dev 1.14.29 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: