[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#41091: Apt fails to install some packages



Package: apt
Version: 0.3.11
Severity: normal

Background: i've build a fake status file with only the standard, required
and important packages (with some corrections, otherwise it would
have been broken). You can find it here :
http://pandora.debian.org/~hertzog/apt/status

And I'm trying to install all packages individually by using a
command line similar to this one :
apt-get -o Dir::State::status=$TDIR/$CODENAME-$ARCH/status \
          -o Dir::State=$TDIR/$CODENAME-$ARCH/apt-state/ \
          -o Dir::Cache=$TDIR/$CODENAME-$ARCH/apt-cache/ \
          -o Dir::Etc=$TDIR/$CODENAME-$ARCH/apt/ \
          -o APT::Architecture=$ARCH \
	-s install <package>
(forget about the variables names, they are not important, it's just
 for showing you which options i'm using)

And apt is able to install most of the packages from the distrib, only 79
of 3719 cannot be installed. And my bug report is precisely about those
failure.

The sources.list file looks like that :
deb file:/rack/ftp/debian potato main contrib non-free
deb file:/rack/ftp/debian-non-US potato/non-US main contrib non-free

In those failures there are several different cases :
- a package declares a Depends on a missing package, this is ok, apt-get
  should fail
- a package declares a Depends on a virtual package without giving
  advice (ie without using the "real | virtual" syntax). 
  Apt here simply fails like that :
=====
~/debian-cd/yacs@p200$ tools/apt-selection install nasm-mode 
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
  nasm-mode: Depends: xemacs20
E: Sorry, broken packages
=====
  It should be able to automatically install one of the xemacs20, the
  guess could be based on priority or whatever.

  Or at least it should fail with an explicative error (ie so that
  a program may detect what real problem there is) like :
  E: depends on a virtual package but doesn't suggest one to install

There are other cases were apt is failing with the same error but it
really should not. For example, if I decide to install dotfile-bash
it will fail because dotfile is not installed but if you add dotfile to
the command line then everything is ok :

~/debian-cd/yacs@p200$ tools/apt-selection install dotfile-bash
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
  dotfile-bash: Depends: dotfile (>= 1:2.3b1-0.1) but it is not installed
E: Sorry, broken packages

With dotfile on the command line :

~/debian-cd/yacs@p200$ tools/apt-selection install dotfile-bash dotfile
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  tkstep4.2 libtiff3g tkstep8.0 tcl7.6 tcl8.0 tk4.2 libjpeg62 tk8.0 xpm4g 
The following NEW packages will be installed:
  dotfile tkstep4.2 libtiff3g tkstep8.0 tcl7.6 tcl8.0 tk4.2 libjpeg62 tk8.0 xpm4g
  dotfile-bash 
0 packages upgraded, 11 newly installed, 0 to remove and 13 not upgraded.
Inst libjpeg62
Inst libtiff3g
Inst tcl8.0
[... skipping the other lines ...]
Conf tk8.0
Conf tk4.2
Conf dotfile
Conf dotfile-bash

I really don't know what could be causing this. BTW, apt-selection is a
wrapper that launch apt-get with a command line like I described at the
top.

And I have many similar problem with other packages : cmucl-clx and cmucl
for example or ifcico and ifmail. If you want more, simply ask, I've got 
the complete list here. :)

And a last request, is there a way to make apt-get automatically install
recommends (and/or suggests) ?

Cheers,
-- 
Hertzog Raphaël >> 0C4CABF1 >> http://prope.insa-lyon.fr/~rhertzog/


Reply to: