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

Re: aptitude unintuitive behaviour (bug resolving dependencies?)



On Thu, 23 Aug 2007, Daniel Burrows wrote:
On Tue, Aug 21, 2007 at 10:13:32AM +0200, Klaas Gadeyne <klaas.gadeyne@fmtc.be> was heard to say:
  aptitude install horde3
[...]
The following NEW packages will be automatically installed:
  apache-common fontconfig-config libapache-mod-php4 libfontconfig1
  libgd2-xpm libmcrypt4 libmysqlclient15off libt1-5 libxpm4
  libzzip-0-12 mysql-common php-cache php-date php-db php-file
  php-http php-http-request php-log php-mail php-mail-mime
  php-net-dime
  php-net-ftp php-net-smtp php-net-socket php-net-url
  php-services-weather php-soap php-xml-parser php-xml-serializer
  php-xml-util
  php4-common php4-gd php4-mcrypt php4-mysql php4-pear
The following packages will be automatically REMOVED:
  libgd2-noxpm
[...]

 I notice that aptitude isn't actually installing apache -- it looks
like something is dragging in libapache-mod-php4, which depends on
apache-common.

 What's the output if you pass -D on the command-line or type "D"
at the prompt?

#  aptitude -D install horde3
[...]
The following NEW packages will be automatically installed:
  apache-common (D: libapache-mod-php4, R: apache-common)
  fontconfig-config (D: libfontconfig1)
  libapache-mod-php4 (D: horde3, D: php4-gd, D: php4-mcrypt, D:
  php4-mysql, D: squirrelmail) libfontconfig1 (D: libgd2-xpm)
  libgd2-xpm (D: analog, D: php4-gd) libmcrypt4 (D: php4-mcrypt)
  libmysqlclient15off (D: php4-mysql) libt1-5 (D: php4-gd)
  libxpm4 (D: libgd2-xpm, D: php4-gd) libzzip-0-12 (D:
  libapache-mod-php4) mysql-common (D: libmysqlclient15off, R:
  mysql-common)
  php-cache (R: php-services-weather) php-date (R: horde3) php-db (D:
  php4-pear, R: horde3, R: php-services-weather, S: php-log)
  php-file (R: horde3) php-http (D: php4-pear) php-http-request (D:
  php-services-weather, D: php-soap, R: php-cache)
  php-log (D: horde3) php-mail (D: php4-pear, R: horde3, R: php-soap)
  php-mail-mime (R: horde3, R: php-soap)
  php-net-dime (R: php-soap) php-net-ftp (R: php-services-weather)
  php-net-smtp (D: php4-pear, R: php-mail)
  php-net-socket (D: php-http-request, D: php-net-smtp, D: php4-pear)
  php-net-url (D: php-http-request)
  php-pear (D: horde3, D: php-cache, D: php-date, D: php-db, D:
  php-http, D: php-http-request, D: php-log, D: php-mail, D:
  php-mail-mime, D: php-net-dime, D: php-net-ftp, D: php-net-smtp, D:
  php-net-socket, D: php-net-url, D: php-services-weather, D:
  php-soap, D: php-xml-parser, D: php-xml-serializer, D: php-xml-util,
  D: php4-pear, S: libapache-mod-php4, S: libapache2-mod-php5, S:
  php5-cli, S: squirrelmail)
  php-services-weather (R: horde3) php-soap (R: php-services-weather)
  php-xml-parser (D: php-xml-serializer, D: php4-pear)
  php-xml-serializer (R: php-services-weather) php-xml-util (D:
  php-xml-serializer)
  php4-common (D: libapache-mod-php4, D: php4-gd, D: php4-mcrypt, D:
  php4-mysql, D: php4-pear) php4-gd (R: horde3, R: php4-gd)
  php4-mcrypt (R: horde3) php4-mysql (R: horde3)
  php4-pear (D: horde3, D: php-file, D: php-log, D:
  php-services-weather, D: php-xml-util, S: squirrelmail)
The following packages will be automatically REMOVED:
  libgd2-noxpm (C: libgd2-xpm)
The following NEW packages will be installed:
  apache-common fontconfig-config horde3 libapache-mod-php4
  libfontconfig1 libgd2-xpm libmcrypt4 libmysqlclient15off libt1-5
  libxpm4
  libzzip-0-12 mysql-common php-cache php-date php-db php-file
  php-http php-http-request php-log php-mail php-mail-mime
  php-net-dime
  php-net-ftp php-net-smtp php-net-socket php-net-url php-pear
  php-services-weather php-soap php-xml-parser php-xml-serializer
  php-xml-util php4-common php4-gd php4-mcrypt php4-mysql php4-pear
The following packages will be REMOVED:
  libgd2-noxpm
[...]

Do you get different results if you pass --without-recommends as a command-line option?

Yes, that seems to do the trick!

#  aptitude --without-recommends install horde3
[...]
The following NEW packages will be automatically installed:
  php-db php-http php-log php-mail php-net-smtp php-net-socket
  php-pear php-xml-parser php4-common php4-pear
The following NEW packages will be installed:
  horde3 php-db php-http php-log php-mail php-net-smtp php-net-socket
  php-pear php-xml-parser php4-common php4-pear
The following packages are RECOMMENDED but will NOT be installed:
  php-date php-file php-mail-mime php-services-weather php4-gd
  php4-ldap php4-mcrypt php4-mysql php4-pgsql php5-gd php5-ldap
  php5-mysql php5-pgsql
[...]

So one of the recommends must be depending on or recommending apache
1.3, right?  I've played a bit around with apt-cache --recurse depends
but I couldn't figure out the culprit (at least not in 3 minutes :-)

It seems like I might to add the --without-recommends into apt.conf.

Thx!

Klaas



Reply to: