virtualbox-ose upgrade causes update-manager crash

Bug #221736 reported by Stuart Crouch
50
Affects Status Importance Assigned to Milestone
virtualbox-ose (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: update-manager

I clicked distribution upgrade and this happened right at the end with about a minute left of installation. It never got as far as clean up

ProblemType: Package
Architecture: i386
Date: Fri Apr 25 08:14:03 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1)

NonfreeKernelModules: nvidia
Package: update-manager 1:0.87.24
PackageArchitecture: all
SourcePackage: update-manager
Title: package update-manager 1:0.87.24 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1)
Uname: Linux 2.6.22-14-generic i686

Revision history for this message
Stuart Crouch (stuart-crouch) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Please attach the files in /var/log/dist-upgrade/ to this bugreport.

Thanks,
 Michael

Changed in update-manager:
status: New → Incomplete
Revision history for this message
Stuart Crouch (stuart-crouch) wrote :
Revision history for this message
Stuart Crouch (stuart-crouch) wrote :
Revision history for this message
Stuart Crouch (stuart-crouch) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

This is a bug in virtualbox-ose, I reassing:

2008-04-25 07:46:21,759 ERROR got an error from dpkg for pkg: '/var/cache/apt/archives/virtualbox-ose_1.5.6-dfsg-6ubuntu1_i386.deb': 'subprocess pre-installation script returned error exit status 1
'
2008-04-25 07:46:21,759 DEBUG running apport_pkgfailure() virtualbox-ose: subprocess pre-installation script returned error exit status 1

Changed in update-manager:
importance: Undecided → High
milestone: none → ubuntu-8.04.1
status: Incomplete → Confirmed
Revision history for this message
Daniel Hahler (blueyed) wrote : Re: virtualbox-ose fails to upgrade

I've asked in the duplicate bug 222425 already:

Any chance you had answered "No" to the following question, which would abort installation/upgrades?

 Proceed with virtualbox-ose upgrade despite losing snapshots?
 You are currently upgrading virtualbox-ose to a new upstream version. All
 snapshots will be discarded by this upgrade, because snapshots are
 version-specific.

It seems so, looking at main.log:
2008-04-25 06:16:13,537 WARNING no activity on terminal for 240 seconds (Preparing virtualbox-ose)
2008-04-25 07:46:21,759 ERROR got an error from dpkg for pkg: '/var/cache/apt/archives/virtualbox-ose_1.5.6-dfsg-6ubuntu1_i386.deb': 'subprocess pre-installation script returned error exit status 1
'

Changed in virtualbox-ose:
status: Confirmed → Incomplete
Revision history for this message
Stefan Pappalardo (sjuk) wrote :

@Daniel Hahler

I don't remember the exact content of the error-message-dialogue in the upgrade-process.
But I'm sure there was no choice-button like "yes" or "no".
After closing the message the upgrade-process skipped installation of virtualbox-ose,
and continued with the next steps up to the end.
After Reboot the virtualbox-ose package installs fine using Synaptics.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Was there maybe a question to skip the setup of a hanging program or something alike?
I'll try to reproduce this in a virtualbox image later (Gutsy => Hardy upgrade with virtualbox-ose/-modules).

Changed in virtualbox-ose:
assignee: nobody → blueyed
status: Incomplete → In Progress
Revision history for this message
Stefan Pappalardo (sjuk) wrote :

Maybe on the console, but not in the error-message-dialogue. And after closing the message, the console filled up with new messages of the continuing upgrade-process. I had no chance for influencing the szene.

Revision history for this message
Daniel Hahler (blueyed) wrote :

This bug report was created because of this crash (from term.log), which needs to be fixed in update-manager, as far as I can see:

Traceback (most recent call last):
  File "logging/__init__.py", line 753, in emit
    self.flush()
  File "logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 9] Bad file descriptor
    self.flush()
  File "logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 9] Bad file descriptor
    self.flush()
  File "logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 9] Bad file descriptor
hardy: Fatal IO error 9 (Bad file descriptor) on X server :0.0.

Re-assigning the bug to update-manager.
I have just reproduced this by upgrading a Gutsy system to Hardy, and when asked to proceed with the virtualbox-ose upgrade, despite losing all snapshots, I did not put the checkbox there (i.e. canceled the upgrade of virtualbox-ose).
This caused two bug reports. This one here for update-manager and bug 210212 for virtualbox-ose.

Changed in virtualbox-ose:
assignee: blueyed → nobody
status: In Progress → Triaged
Revision history for this message
Steve Langasek (vorlon) wrote :

In fact, the error report happened because of the dpkg failure when configuring the virtualbox-ose. Reassigning back.

Changed in update-manager:
milestone: ubuntu-8.04.1 → none
Revision history for this message
Daniel Hahler (blueyed) wrote :

Steve, as far as I can see there are two crashes caused by the same reason: the virtualbox-ose debconf question not being answered/seen.
The other one is bug 210212.

The reason appears to be the same, but my point was that update-manager should not crash on this, if possible.

Revision history for this message
snoolan (steve-noolan) wrote : Re: [Bug 221736] Re: virtualbox-ose upgrade causes update-manager crash

Daniel,
    thank you for the work you are putting in on this project.

I hope that you enjoy the programming and want to make sure that we
appreciate your efforts.

Cheers,
Steve Noolan

 Not doing something you can't do ... is not a moral victory.

Mob 0171 597 0863 (Inside Bangladesh)
Mob +880 171 597 0863 (Outside Bangladesh)
Skype (08) 8121 7819 (VOIP via Skype)
Skype snoolan
eMail <email address hidden>

Daniel Hahler wrote:
> Steve, as far as I can see there are two crashes caused by the same reason: the virtualbox-ose debconf question not being answered/seen.
> The other one is bug 210212.
>
> The reason appears to be the same, but my point was that update-manager
> should not crash on this, if possible.
>
>

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

@daniel: if you reproduced the issue, could you please tell me in what way update-manager crashes? does it segfault or raise a python excpetion? what did you do to reproduce it? was installing virtualbox prior to the upgrade enough?

Revision history for this message
Daniel Hahler (blueyed) wrote :

@Michael: yes I could reproduce it and it caused two bug reports to be created.
IIRC the above quoted python exception is the part where update-manager crashed.

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

This bug was fixed in the package virtualbox-ose - 2.0.4-dfsg-0ubuntu1

---------------
virtualbox-ose (2.0.4-dfsg-0ubuntu1) intrepid; urgency=low

  [ Jonathan Ernst ]
  * Virtualbox should go in Accessories, not in System tools (LP: #288590)

  [ Daniel Hahler ]
  * New upstream version (LP: #288957)
    - Updated debian/patches/09-initscript.dpatch (one hunk rejected/obsolete)
  * Drop debconf question about losing snapshots because of upgrading: it is
    no longer relevant and the default (cancel upgrade) caused a lot of
    trouble (LP: #288178, #221736)
    - debian/virtualbox-ose.preinst.in, debian/virtualbox-ose.templates,
      debian/rules
  * Improve patch for disabling the "check for updates" dialog (LP: #272212)
    - debian/patches/13-disable-update-action.dpatch
  * Disable registration request at Sun (LP: #285684, #271603)
    - debian/patches/14-disable-registration-request.dpatch

 -- Daniel Hahler <email address hidden> Sun, 26 Oct 2008 02:23:42 +0100

Changed in virtualbox-ose:
status: Triaged → Fix Released
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.