Bug#446456: apt: needless "Suggested packages:" prompt; ignores already installed Provider package
Package: apt
Version: 0.7.6
Severity: normal
A recent 'mplayer' upgrade:
% apt-get install mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libdvdcss
The following packages will be upgraded:
mplayer
...
...the 'libdvdcss' bit looked odd, (it's installed), but let's try
installing it:
% apt-get install mplayer libdvdcss
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting libdvdcss2 instead of libdvdcss
libdvdcss2 is already the newest version.
Suggested packages:
libdvdcss
The following packages will be upgraded:
mplayer
1 upgraded, 0 newly installed, 0 to remove and 245 not upgraded.
...
Which implies that since 'libdvdcss2' is installed, it
provides 'libdvdcss'. True:
% apt-cache show libdvdcss2 | grep Prov
Provides: libdvdcss
Seems like the "Suggested packages:" list includes needless
suggestions.
Possible fix: check for installed providers of a suggested virtual or
otherwise substitutable package; if a provider package is already
installed, it needn't suggest the corresponding virtual package.
Hope this helps...
-- Package-specific info:
-- (no /etc/apt/preferences present) --
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-k7 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2007.07.31 GnuPG archive keys of the Debian a
ii libc6 2.6.1-5 GNU C Library: Shared libraries
ii libgcc1 1:4.2.1-6 GCC support library
ii libstdc++6 4.2.1-6 The GNU Standard C++ Library v3
apt recommends no packages.
-- no debconf information
Reply to: