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

Bug#204780:



On Wed, Aug 13, 2003 at 08:28:20PM -0400, Matt Zimmerman wrote:
> 
> I'm not intimately familiar with this part of the code, but this doesn't
> look right to me.
<snip>
> I am still unable to reproduce this, so I can't tell why this is happening.

This one is due to the python 2.2 -> 2.3 transition:

orion:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back
  foomatic-gui freeswan gdeskcal python python-apt python-egenix-mxdatetime python-glade2 python-gnome2 python-gtk2 python-xml
  python2.2 python2.2-xmlbase reportbug straw
The following packages will be upgraded
  python2.2-glade2 python2.2-gnome2 python2.2-gtk2 python2.2-optik python2.2-pyorbit python2.2-xml
6 packages upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 1467kB of archives.
After unpacking 1061kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
orion:~# apt-get dselect-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  python-bsddb3 python-xmlbase* python2.2-xml* python2.2-xmlbase* straw
The following NEW packages will be installed:
  python2.3 python2.3-egenix-mxdatetime python2.3-egenix-mxtools python2.3-gtk2 python2.3-xml
The following packages will be upgraded
  foomatic-gui gdeskcal python python-apt python-egenix-mxdatetime python-glade2 python-gnome2 python-gtk2 python-xml
  python2.2 python2.2-glade2 python2.2-gnome2 python2.2-gtk2 python2.2-optik python2.2-pyorbit reportbug
16 packages upgraded, 5 newly installed, 5 to remove and 1 not upgraded.
Need to get 7974kB of archives.
After unpacking 11.0MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
orion:~# apt-get remove python-bsddb3
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  python python-apt python-egenix-mxdatetime python-xml python2.3 python2.3-egenix-mxdatetime python2.3-egenix-mxtools
  python2.3-xml
Suggested packages:
  python-tk python2.3-doc
The following packages will be REMOVED:
  python-bsddb3 python-xmlbase straw
The following NEW packages will be installed:
  python2.3 python2.3-egenix-mxdatetime python2.3-egenix-mxtools python2.3-xml
The following packages will be upgraded
  python python-apt python-egenix-mxdatetime python-xml
4 packages upgraded, 4 newly installed, 3 to remove and 15 not upgraded.
Need to get 4149kB of archives.
After unpacking 13.5MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
orion:~#

python-bsddb3 depends on "python (>= 2.2), python (<< 2.3)" (IOW, it
hasn't transitioned yet) thus keeping up everything else which wants
python >= 2.3.
python-bsddb3 itself is required by straw, btw, though that is besides the
point here I suppose.

apt can't upgrade a load of packages (which directly or indirectly require
python >= 2.3) without removing python-bsddb3. When asked to remove the
latter, it finds a number of packages which can be updated thanks to this
removal and decides to do so, for whatever reason.

This output leads me to believe that the reason it does so is that it
walks the dependency chain (both up and down) of installed packages
involving the package being removed, and tries to fix anything broken it
finds in that dependency chain rather than only removing the package:

orion:~# apt-get -o Debug::pkgProblemResolver=true remove python-bsddb3 1> /dev/null
Starting
Starting 2
Package straw has broken dep on python
  Considering python 50 as a solution to straw 0
  Re-Instated python2.3
  Re-Instated python
    Reinst Failed because of protected python-bsddb3
  Removing straw rather than change python
Package python has broken dep on python-xmlbase
  Considering python-xmlbase 1 as a solution to python 50
  Added python-xmlbase to the remove list
  Fixing python via remove of python-xmlbase
Package python-apt has broken dep on python
  Considering python 50 as a solution to python-apt 2
  Re-Instated python-apt
Package python-xml has broken dep on python
  Considering python 50 as a solution to python-xml 1
  Re-Instated python2.3-xml
  Re-Instated python-xml
Package python-egenix-mxdatetime has broken dep on python
  Considering python 50 as a solution to python-egenix-mxdatetime 1
  Re-Instated python2.3-egenix-mxtools
  Re-Instated python2.3-egenix-mxdatetime
  Re-Instated python-egenix-mxdatetime
Done

A bit more information on the above packages:
- straw, python-apt, python-xml and python-egenix-mxdatetime have already
  transitioned and want python 2.3, hence the broken deps.
- python 2.3 conflicts with python-xmlbase.
The above however is true only for the latest, not-installed-yet versions
of these packages. The ones currently installed on my system are versions
which haven't transitioned yet.

However, while straw is currently not broken, removing python-bsddb3 does
break it; and I suppose when apt tries to figure out what to do it does so
with the most current version of straw rather than the installed one, thus
triggering the upgrade of lots of things (the dependency walk kept in mind)


Regards,

Filip

-- 
* Robot101 likes the way that windows says 'Windows is now detecting your
           hardware and any plug and play devices you may have.', thus
           confirming that plug and play devices don't actually qualify as
           hardware.



Reply to: