Update of Ubuntu from 9.04 to 9.10 Beta fails with error message regarding OpenOffice

Bug #442651 reported by swulf
146
This bug affects 28 people
Affects Status Importance Assigned to Milestone
openoffice.org (Ubuntu)
Fix Released
High
Unassigned
Karmic
Fix Released
High
Unassigned
update-manager (Ubuntu)
Fix Released
Medium
Unassigned
Karmic
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: update-manager

During the upgrade/update of Ubuntu 9.04 to 9.10 Beta using the Update Manager the process eventually fails with the error message:

'Exception during pm.DoInstall(): E:Couldn't configure pre-depend openoffice.org-core for openoffice.org-filter-binfilter, probably a dependency cycle.'

Attempting the upgrade again gives the same result. Please advise as to how to overcome this.

Thanks.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: fglrx
Package: update-manager 1:0.111.9
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager
Uname: Linux 2.6.28-15-generic i686

Revision history for this message
swulf (swulf) wrote :
Revision history for this message
Chuck Finley (greeneggs7) wrote :

Same problem. This is my first attempt at an upgrade on my desktop. The upgrade was successful on my older laptop, although I had just fresh installed 9.04 a few weeks ago.

Linux 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009 x86_64 GNU/Linux

Revision history for this message
Chuck Finley (greeneggs7) wrote :

Reverted to Jaunty and upgraded old packages (openoffice was upgraded as part of this upgrade). Tried updating to Karmic beta but ran into the same problem as before. No luck :(

Revision history for this message
Nick Barcet (nijaba) wrote :

I too seem to be hitting the same issue.
Attaching dist-upgrade logs

Revision history for this message
Nick Barcet (nijaba) wrote :
Michael Vogt (mvo)
Changed in update-manager (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Chris Cheney (ccheney) wrote :

As best as I can tell from looking at OOo:

openoffice.org-core:

Replaces: openoffice.org-filter-binfilter (<< 1:3.1.0-5)

and

openoffice.org-filter-binfilter:

Depends: openoffice.org-core

So I am not certain why it is getting stuck. I didn't see any other reason for it to get stuck in that cycle, but I might have been missing something...

Changed in openoffice.org (Ubuntu):
status: New → Incomplete
Revision history for this message
Chris Cheney (ccheney) wrote :

Is it due to the Pre-Depends and Replaces combination?

Revision history for this message
Chuck Finley (greeneggs7) wrote :

Removed all openoffice related packages. Upgrade ran fine after that. Reinstalled openoffice and no problems so far.

Revision history for this message
David Tester (david-g-tester) wrote :

Had the same problem. Fixed it by removing openoffice.org-filter-binfilter and then running upgrade again.

Revision history for this message
Arie Skliarouk (skliarie) wrote :

Thanks for the tip, after I removed openoffice.org-filter-binfilter, I was able to continue with the upgrade.

Revision history for this message
Conor (ronocdh) wrote :

Definitely works if you remove openoffice.org-filter-binfilter and then proceed with upgrade to Karmic beta.

My system is i386, fglrx driver. Linux 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:49:34 UTC 2009 i686 GNU/Linux

Michael Vogt (mvo)
Changed in openoffice.org (Ubuntu Karmic):
status: Incomplete → Confirmed
importance: Undecided → High
milestone: none → ubuntu-9.10
Revision history for this message
Michael Vogt (mvo) wrote :

I looked into this now and it seems like there is a bug in the apt ordering code that makes this fail when it tries to figure out what to do with openoffice.org-common (a dependency of openoffice.org-core) when the calculation of the ordering happens. A easy workaround is to help the ordering algorithm a bit by doing:

--- control.in.orig 2009-10-16 08:59:14.868431842 +0200
+++ control.in 2009-10-16 08:59:16.570931100 +0200
@@ -654,7 +654,7 @@
 Package: openoffice.orgVER-evolution
 Architecture: %OOO_ARCHS%
 Section: gnome
-Pre-Depends: openoffice.orgVER-core (>= 1:3.1.0-2), debconf (>= 0.5) | debconf-2.0, procps
+Pre-Depends: openoffice.orgVER-common (>= (>= 1:3.1.0-2), openoffice.orgVER-core (>= 1:3.1.0-2), debconf (>= 0.5) | debconf-2.0, procps
 Depends: openoffice.orgVER-core (= ${binary:Version}),
  openoffice.orgVER-base,
  ${shlibs:Depends},
@@ -724,7 +724,7 @@
 Package: openoffice.orgVER-filter-binfilter
 Section: misc
 Architecture: %OOO_BINFILTER_ARCHS%
-Pre-Depends: openoffice.orgVER-core (>= 1:3.1.0-2), debconf (>= 0.5) | debconf-2.0, procps
+Pre-Depends: openoffice.orgVER-common (>= (>= 1:3.1.0-2), openoffice.orgVER-core (>= 1:3.1.0-2), debconf (>= 0.5) | debconf-2.0, procps
 Depends: openoffice.orgVER-core (= ${binary:Version}),
  ${shlibs:Depends},
  ${misc:Depends}

This seems to fix it.

Revision history for this message
Michael Vogt (mvo) wrote :

I also got a couple of reports privately about this bug, it seems to be relatively wide-spread.

Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Oddly enough having the jaunty version of openoffice.org-evolution installed seems to fix it as well.

Revision history for this message
Michael Vogt (mvo) wrote :

It looks like the culprit is apt-pkg/packagemanager.cc:DepAdd(). The chain of events is:

SmartUnpack(openoffice.org-filter-binfilter)
SmartConfigure(openoffice.org-core)
DepAdd(openoffice.org-core)

that checks the dependencies and falls over the openoffice.org-common that is not in any
state that its expecting it to be (the "for (Version **I = VList; ..." loop around line 708).

openoffice.org-common is neither in unpacked nor in configured state and apt does not
cope with that then. But with that said, the real issue is probably the orderlist.cc algorithm.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openoffice.org - 1:3.1.1-4ubuntu2

---------------
openoffice.org (1:3.1.1-4ubuntu2) karmic; urgency=low

  [ Chris Cheney ]
  * Add openoffice.org-common to Pre-Depends as workaround for apt ordering.
    (LP: #442651)
  * Resynchronise with ooo-build-3-1-1 (01bbcda85cb32be9eb5334430fb208ec5ca60041).
    - patches/dev300/kde4_fpicker_fixes2.diff: kde4 fpicker: fixed 'new folder'
      button
    - patches/dev300/ubuntu-opt.diff: -Os in karmic on powerpc doesn't work

  [ Matthias Klose ]
  * Build using internal boost on jaunty, adjust libgcc3_uno.so URL in
    debian/copyright.

 -- Matthias Klose <email address hidden> Sat, 17 Oct 2009 16:06:49 +0200

Changed in openoffice.org (Ubuntu Karmic):
status: Confirmed → Fix Released
Michael Vogt (mvo)
Changed in update-manager (Ubuntu Karmic):
status: Confirmed → Fix Released
Revision history for this message
ooze (zoe-gauthier) wrote :

Upgrading from Karmic to Lucid with "do-release-upgrade -d" seem to fail with the same error message:

Exception during pm.DoInstall(): E:Couldn't configure pre-depend openoffice.org-core for openoffice.org-filter-binfilter, probably a dependency cycle.

Uninstalling openoffice.org makes it possible to do the upgrade. However, it will be difficult to reproduce the problem now that the system is up to date. Is a regression possible or should I file a new bug? The Pre-Depends for openoffice.org-filter-binfilter before the upgrade correctly included openoffice.org-common.

Revision history for this message
Adrian Tritschler (ajft) wrote :

Upgrading from 9.10 to 10.04alpha3 with "update-manager -d" failing on my PC with the same message

Revision history for this message
MarcoPau (marcopau) wrote :

Adrian: remove all openoffice* and ooobasis* packages, then upgrade.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.