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

Bug#385670: marked as done (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 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: apt
Version: 0.6.45
Severity: minor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Sometimes apt wants to install apache2-mpm-prefork libapache2-mod-php4
for me, when I update the system. But there is really no need to do this
and after the upgrade I normally have to run 'apt-get remove --purge
...' for these two packages to remove them again. See e.g. today:

LANG=C sudo apt-get dist-upgrade -u
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  apache2-mpm-prefork libapache2-mod-php4
The following packages have been kept back:
  pan
The following packages will be upgraded:
  cpp-4.1 fastjar g++-4.1 gcc-4.1 gcc-4.1-base gcc-4.1-locales 
  gettext gettext-base libapache-mod-php4 libgcc1 libgfortran1
  libmilter0 libmudflap0 libmudflap0-dev libssp0 libstdc++6
  libstdc++6-4.1-dev libstdc++6-4.1-doc mysql-common php-pear php4
  php4-cgi php4-cli php4-common php4-mysql php4-pear php5-common
  python-gdbm python-support python-tk
30 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 23.5MB/28.2MB of archives.
After unpacking 3637kB of additional disk space will be used.
Do you want to continue [Y/n]? y
[..]

And after installation:

LANG=C sudo apt-get remove --purge apache2-mpm-prefork
libapache2-mod-php4
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  apache2-mpm-prefork* libapache2-mod-php4*
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
Need to get 0B of archives.
After unpacking 3690kB disk space will be freed.
Do you want to continue [Y/n]? y
[..]

So there should be no need to install these two packages and I guess,
apt mis-calculates the dependecies in this special case. If you tell me,
how I can help to examine the cause for this issue, I will do my best to
help. This is not annoying, but also not very nice.

Regards, Daniel


- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (850, 'unstable'), (700, 'testing'), (550, 'stable'), (110, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.08060320
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages apt depends on:
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libgcc1                      1:4.1.1-13  GCC support library
ii  libstdc++6                   4.1.1-13    The GNU Standard C++ Library v3

Versions of packages apt recommends:
ii  debian-archive-keyring        2006.01.18 GnuPG archive keys of the Debian a

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE+Onqdg0kG0+YFBERAsJtAJ0QKrjfj8FqDp2u8E6JRLa8JlVhRwCdHkAb
utvsEiY/r97saNakfMZVSOk=
=eLTM
-----END PGP SIGNATURE-----


--- 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: