Bug#726174: apt: APT::Get::Upgrade-Allow-New installs new packages when depending package isn't upgraded
Package: apt
Version: 0.9.12
Severity: normal
If a package is pinned to prevent an upgrade, but the candidate version
has new dependencies, apt will install those even though the depending
package isn't being upgraded. For example,
Package: foo
Version: 1
Depends: bar
Pin-Priority: 1000
Package: foo
Version: 2
Depends: bar, baz
“apt-get upgrade --with-new-pkgs” will hold back foo but will both
install baz and list it as a package that can be autoremoved.
There may be other situations where this also occurs, since the
MarkInstall of the new depended packages happens before the resolver
determines how to handle the depending package. This is just the first
situation I encountered.
-- Package-specific info:
-- (/etc/apt/preferences present, but not submitted) --
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2012.4
ii gnupg 1.4.15-1
ii libapt-pkg4.12 0.9.12
ii libc6 2.17-93
ii libgcc1 1:4.8.1-10
ii libstdc++6 4.8.1-10
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.8.2-1.2
ii dpkg-dev 1.17.1
ii python-apt 0.8.9.1+b1
ii xz-utils 5.1.1alpha+20120614-2
-- no debconf information
Reply to: