Bug#399939: apt-get (0.6.46.2) : incorrect dependencies resolution
Package: apt
Version: 0.6.46.3
Severity: normal
Hi,
my sources.list files contains both testing and unstable repositories.
I am pinning packages from "unstable" to 99, and my default release is "testing".
The incorrect behavior appears when running "apt-get dist-upgrade" : apt-get wants
to install sysvinit-utils (2.86.ds1-34) from unstable, whereas it was not previously
installed and is not a dependency of an installed package.
apt-get seems to mix dependencies of a package from several debian releases, whereas
it should only consider dependencies of installed packages.
On the other hand, "aptitude dist-upgrade -s -V" has a correct behavior and will
not attempt to install sysvinit-utils package. Neither does "adept_updater".
Best Regards,
David
-- output of apt-get dist-upgrade -s -V --
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following NEW packages will be installed
sysvinit-utils (2.86.ds1-34)
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst sysvinit-utils (2.86.ds1-34 Debian:unstable)
Conf sysvinit-utils (2.86.ds1-34 Debian:unstable)
My comment :
sysvinit-utils has no reason to be installed !
sysvinit-utils is a dependency of sysvinit (2.86.ds1-34 - unstable version), and not
a dependency of the installed sysvinit package (2.86.ds1-20 - testing version), as shown
below.
-- partial output of "apt-rdepends sysvinit-utils" --
sysvinit-utils
Reverse Depends: initscripts (2.86.ds1-34)
Reverse Depends: upstart-compat-sysv (>= 0.2.7-2)
Reverse PreDepends: sysvinit (2.86.ds1-34)
Reverse PreDepends: upstart (>= 0.2.7-2)
-- partial output of "apt-cache show sysvinit --
Package: sysvinit
Essential: yes
Priority: required
Section: admin
Installed-Size: 272
Maintainer: Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>
Architecture: i386
Version: 2.86.ds1-34
Depends: libc6 (>= 2.3.6-6), libselinux1 (>= 1.32), libsepol1 (>= 1.14)
Pre-Depends: initscripts, sysv-rc (>= 2.86.ds1-1.2) | file-rc (>> 0.7.0), sysvinit-utils
[...]
Package: sysvinit
Essential: yes
Priority: required
Section: admin
Installed-Size: 356
Maintainer: Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>
Architecture: i386
Version: 2.86.ds1-20
Replaces: last
Depends: libc6 (>= 2.3.6-6), libselinux1 (>= 1.30.27), libsepol1 (>= 1.12.24)
Pre-Depends: initscripts, sysv-rc (>= 2.86.ds1-1.2) | file-rc (>> 0.7.0)
[...]
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::Default-Release "testing";
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/sbin/dpkg-preconfigure --apt || true";
Acquire "";
Acquire::::Proxy "false";
-- /etc/apt/preferences --
Package: *
Pin: release a=unstable
Pin-Priority: 99
-- /etc/apt/sources.list --
# TESTING / ETCH
deb http://ftp.fr.debian.org/debian/ etch main non-free contrib
deb-src http://ftp.fr.debian.org/debian/ etch main non-free contrib
# UNSTABLE
deb http://ftp.fr.debian.org/debian/ unstable main non-free contrib
deb-src http://ftp.fr.debian.org/debian/ unstable main non-free contrib
#EXPERIMENTAL
deb http://ftp.fr.debian.org/debian/ experimental main non-free contrib
deb-src http://ftp.fr.debian.org/debian/ experimental main non-free contrib
# SECURITY
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing'), (99, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages apt depends on:
ii debian-archive-keyring 2006.01.18 GnuPG archive keys of the Debian a
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-19 GCC support library
ii libstdc++6 4.1.1-19 The GNU Standard C++ Library v3
apt recommends no packages.
-- no debconf information
Reply to: