adept fails to upgrade from hardy -> karmic

Bug #452090 reported by Dave Morley
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Fix Released
High
Michael Vogt
Karmic
Fix Released
High
Michael Vogt

Bug Description

Binary package hint: adept

Using adept from hardy proposed to check for sru upgrade.

Fails towards the end of the download section.

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

Here is the error:

2009-10-15 12:36:33,165 INFO cache.commit()
2009-10-15 12:36:33,427 DEBUG fork pid is: 0
2009-10-15 12:36:33,429 DEBUG fork pid is: 7818
2009-10-15 12:36:33,550 ERROR Exception during pm.DoInstall()
Traceback (most recent call last):
  File "/tmp/kde-tester/adept_managerlU8Zka.tmp-extract/DistUpgradeView.py", line 143, in run
    res = pm.DoInstall(self.writefd)
SystemError: E:Internal Error, Could not perform immediate configuration (2) on sysvinit-utils

That is a problem with apt/libapt

Revision history for this message
Dave Morley (davmor2) wrote :

mvo just to confirm.

I did a basic install of Kubuntu.
I updated kubuntu with all the hardy updates.
I enabled proposed to get the adept sru update.

I then ran sudo adept_manager --dist-upgrade-devel-lts

devel by itself upgrades to intrepid.

Dave Morley (davmor2)
Changed in adept (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
Jonathan Riddell (jr)
affects: adept (Ubuntu) → apt (Ubuntu)
Changed in apt (Ubuntu):
milestone: none → ubuntu-9.10
Revision history for this message
Jonathan Riddell (jr) wrote :

I can recreate this bug with a fresh install from a hardy CD

Changed in apt (Ubuntu Karmic):
status: New → Confirmed
Steve Langasek (vorlon)
Changed in apt (Ubuntu Karmic):
importance: Undecided → High
Revision history for this message
Michael Vogt (mvo) wrote :

I can reproduce the problem in a VM:

The dependencies look as following:

Package: sysvinit-utils
Priority: required
Depends: upstart (>= 0.6.3-4)

Package: upstart
Priority: required
Pre-Depends: sysvinit-utils

Because of the pre-depends apt would have to unpack and configure sysinit-utils before upstart, but upstart is a dependency of sysvinit-utils so it can not configure it until upstart is unpacked.

Its actually worse, because both packages are really low in the dependency chain and util-linux (with essential=yes) needs them, apt wants to do a immediate configure on both of them. So even if the Pre-Depends sysvinit-utils becomes
a normal depends apt will still error out unless it is called with "-o Apt::Immediate-Configure=false" (which is in itself dangerous).

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

The pre-dependency of util-linux for upstart is added by ${misc:Depends}.

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

The dependency was only recently added:

diff -Nru sysvinit-2.87dsf/debian/changelog sysvinit-2.87dsf/debian/changelog
--- sysvinit-2.87dsf/debian/changelog 2009-09-22 01:29:35.000000000 +0200
+++ sysvinit-2.87dsf/debian/changelog 2009-09-22 23:26:18.000000000 +0200
@@ -1,3 +1,12 @@
+sysvinit (2.87dsf-4ubuntu7) karmic; urgency=low
+
+ * debian/rules: add a versioned dependency on the upstart that provides
+ the reload action
+ * debian/service/service: handle reload and force-reload actions as
+ upstart commands, LP: #433544
+
+ -- Dustin Kirkland <email address hidden> Tue, 22 Sep 2009 14:25:37 -0700
+
 sysvinit (2.87dsf-4ubuntu6) karmic; urgency=low

   * Remove conffiles that are no longer included in this package.
diff -Nru sysvinit-2.87dsf/debian/control sysvinit-2.87dsf/debian/control
--- sysvinit-2.87dsf/debian/control 2009-09-19 22:32:04.000000000 +0200
+++ sysvinit-2.87dsf/debian/control 2009-09-22 23:25:34.000000000 +0200
@@ -28,7 +28,7 @@
 Conflicts: last, sysvconfig, chkconfig (<< 11.0-79.1-1ubuntu1), sysvconfig (<< 0.80ubuntu1)
 Replaces: sysvutils (<< 2.86.ds1-56ubuntu1), last, sysvinit (<= 2.86.ds1-65), sysvconfig (<< 0.80ubuntu1)
 Provides: sysvutils
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, upstart (>= 0.6.3-4)
 Suggests: sash
 Description: System-V-like utilities
  This package contains the important System-V-like utilities.

and AFAICS it does not need to be a strict one.

Revision history for this message
Martin Pitt (pitti) wrote :

Closing manually due to changelog typo:

sysvinit (2.87dsf-4ubuntu11) karmic; urgency=low

  * debian/control:
    - Change the upstart dependency to a recommend in sysinit-utils
      because its not a hard dependency. This will fix a dependency
      cycle that causes kubuntu upgrades to fail (LP: ä452090)

 -- Michael Vogt <email address hidden> Mon, 19 Oct 2009 15:12:44 +0200

Changed in apt (Ubuntu Karmic):
status: Confirmed → Fix Released
affects: apt (Ubuntu Karmic) → sysvinit (Ubuntu Karmic)
Revision history for this message
Wesley Schwengle (wesleys) wrote :

I can confirm it works. The only issue I had was

/usr/bin/diff: /etc/X11/app-defaults/Xedit: No such file or directory

and Adept telling me later (much later) that there was a difference. Then showed zero differences..

But now running Karmic coming from Hardy directly.

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.