Package: dpkg
Version: 1.17.7
Severity: normal

Hi,

I tried to install dstat on a relatively recent sid system:

# apt-get -u install dstat
[...]
The following NEW packages will be installed:
  dstat
0 upgraded, 1 newly installed, 0 to remove and 323 not upgraded.
Need to get 50.5 kB of archives.
After this operation, 351 kB of additional disk space will be used.
Get:1 http://cdn.debian.net/debian/ sid/main dstat all 0.7.2-4 [50.5 kB]
Fetched 50.5 kB in 6s (8,254 B/s)               
Selecting previously unselected package dstat.
(Reading database ... 38323 files and directories currently installed.)
Unpacking dstat (from .../archives/dstat_0.7.2-4_all.deb) ...
Processing triggers for man-db ...
dpkg: dependency problems prevent configuration of dstat:
 dstat depends on python:any (>= 2.6.6-7~).

dpkg: error processing dstat (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 dstat
E: Sub-process /usr/bin/dpkg returned an error code (1)

Huh? apt-get should've taken care of that, surely?

Let's try to force it:

# apt-get -f install
[...]
0 upgraded, 0 newly installed, 0 to remove and 332 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
dpkg: dependency problems prevent configuration of dstat:
 dstat depends on python:any (>= 2.6.6-7~).

dpkg: error processing package dstat (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 dstat
E: Sub-process /usr/bin/dpkg returned an error code (1)

Installing python manually:

# apt-get -u install python
[...]
The following extra packages will be installed:
  libpython-stdlib python-minimal
Suggested packages:
  python-doc python-tk
The following packages will be upgraded:
  libpython-stdlib python python-minimal
3 upgraded, 0 newly installed, 0 to remove and 329 not upgraded.
1 not fully installed or removed.
Need to get 0 B/204 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 38404 files and directories currently installed.)
Preparing to unpack .../python_2.7.5-5_amd64.deb ...
Unpacking python (2.7.5-5) over (2.7.5-3) ...
Preparing to unpack .../python-minimal_2.7.5-5_amd64.deb ...
Unpacking python-minimal (2.7.5-5) over (2.7.5-3) ...
Preparing to unpack .../libpython-stdlib_2.7.5-5_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.5-5) over (2.7.5-3) ...
Processing triggers for man-db (2.6.5-2) ...
Setting up python-minimal (2.7.5-5) ...
Setting up libpython-stdlib:amd64 (2.7.5-5) ...
Setting up python (2.7.5-5) ...
Setting up dstat (0.7.2-4) ...

So it turns out the python package was already 2.7.5-3, but for some reason
that didn't satisfy a dependency on python:any (>= 2.6.6-7~) as far as dpkg
was concerned, but did satisfy it as far as apt-get was concerned.

To me it looks like apt-get was right and dpkg was wrong.

Andras

-- 
                   Can February March? No, but April May...


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to