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

Bug#492424: marked as done (The greedy resolver should prefer upgrading one alternative in an OR to installing a new package.)



Your message dated Thu, 13 Aug 2015 15:36:44 +0200
with message-id <20150813133644.GA26199@crossbow>
and subject line Re: Bug#385670: apt is calculation wrong dependencies
has caused the Debian Bug report #385670,
regarding The greedy resolver should prefer upgrading one alternative in an OR to installing a new package.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
385670: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=385670
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: aptitude
Version: 0.4.11.8-1
Severity: normal

Hi!

When I try to upgrade phpldapadmin, aptitude always automatically
install some other unneeded packages to satisfy the dependencies.
See:

phpldapadmin depends on apache2 | httpd

I have lighttpd installed (that provides httpd).
So aptitude shouldn't install apache2-mpm-prefork, apache2-utils and
apache2.2-common

The same thing for php5. It depends on libapache2-mod-php5 (>= 5.2.5-3)
| php5-cgi (>= 5.2.5-3)

I have php5-cgi installed, but it tries to install libapache2-mod-php5

Is it a known problem with aptitude, something wrong on the package
dependencies or just another stupid user bug, please?

Thank you very much!

Best regards,
Nelson


-- Package-specific info:
aptitude 0.4.11.8 compilado em Jul  4 2008 16:43:39
Compilador: g++ 4.3.1
Compilado contra:
 versão apt 4.6.0
  Versão NCurses: 5.6
  versão libsigc++: 2.0.18
  Suporte a ept habilitado.

Versões atuais das bibliotecas:
  Versão NCurses: ncurses 5.6.20080531
  versão cwidget: 0.5.11
  Versão apt: 4.6.0
	linux-gate.so.1 =>  (0xb7fde000)
	libapt-pkg-libc6.7-6.so.4.6 => /usr/lib/libapt-pkg-libc6.7-6.so.4.6 (0xb7f0f000)
	libncursesw.so.5 => /lib/libncursesw.so.5 (0xb7ed3000)
	libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0xb7ecc000)
	libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0xb7ddc000)
	libept.so.0 => /usr/lib/libept.so.0 (0xb7d68000)
	libxapian.so.15 => /usr/lib/libxapian.so.15 (0xb7bf5000)
	libz.so.1 => /usr/lib/libz.so.1 (0xb7be0000)
	libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7bc7000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7ad9000)
	libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7ab3000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7aa6000)
	libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb794b000)
	libutil.so.1 => /lib/i686/cmov/libutil.so.1 (0xb7947000)
	libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7942000)
	/lib/ld-linux.so.2 (0xb7fdf000)
Terminal: rxvt-unicode
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-naoliv1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6. 0.7.14+b1         Advanced front-end for dpkg
ii  libc6                  2.7-12            GNU C Library: Shared libraries
ii  libcwidget3            0.5.11-1          high-level terminal interface libr
ii  libept0                0.5.21            High-level library for managing De
ii  libgcc1                1:4.3.1-7         GCC support library
ii  libncursesw5           5.6+20080531-1    Shared libraries for terminal hand
ii  libsigc++-2.0-0c2a     2.0.18-2          type-safe Signal Framework for C++
ii  libstdc++6             4.3.1-7           The GNU Standard C++ Library v3
ii  libxapian15            1.0.5-1           Search engine library
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages aptitude recommends:
pn  aptitude-doc-en | aptitude-do <none>     (no description available)
ii  libparse-debianchangelog-perl 1.1.1-2    parse Debian changelogs and output

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 0.8.10

On Tue, Sep 12, 2006 at 01:00:51PM +0200, Goswin von Brederlow wrote:
> This happens (from experience, not from reading the code) if some
> package depends 'apache2-mpm-prefork | foobar (>= 1.2-4)' and you have
> only foobar 1.2-3 installed. To solve the dependency apt-get decides
> to install the first alternative and ignores the fact that foobar will
> be updated to 1.2-4 along the way too.

While this was right nine years ago in 2010 apt 0.8.10 had the following
change included:

  * apt-pkg/algorithms.cc:
    - mark all installed packages first without auto installation in
      a dist-upgrade to prefer upgrading packages instead of installing
      new packages in versioned or-groups (Closes: #605394)

So, that is supposed to be fixed now (and has a testcase suggesting as
much).  I am therefore closing, but if you can still reproduce this,
feel free to reopen.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply to: