MASTER: dpkg error on do_remove

Bug #69470 reported by Andrew Harrison
182
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Fix Released
Undecided
Colin Watson

Bug Description

Hi,

I tried to install ubuntu6.10. Unfortunately I got the following:

Best wishes,
<email address hidden>

Traceback (most recent call last):
  File "/usr/bin/ubiquity", line 166, in ?
    main()
  File "/usr/bin/ubiquity", line 161, in main
    install(sys.argv[1])
  File "/usr/bin/ubiquity", line 57, in install
    ret = wizard.run()
  File "/usr/lib/ubiquity/ubiquity/frontend/gtkui.py", line 305, in run
    self.process_step()
  File "/usr/lib/ubiquity/ubiquity/frontend/gtkui.py", line 856, in process_step
    self.progress_loop()
  File "/usr/lib/ubiquity/ubiquity/frontend/gtkui.py", line 628, in progress_loop
    raise RuntimeError, ("Install failed with exit code %s\n%s" %
RuntimeError: Install failed with exit code 1
Traceback (most recent call last):
  File "/usr/share/ubiquity/install.py", line 1404, in ?
    install.run()
  File "/usr/share/ubiquity/install.py", line 390, in run
    self.remove_extras()
  File "/usr/share/ubiquity/install.py", line 1341, in remove_extras
    self.do_remove(difference)
  File "/usr/share/ubiquity/install.py", line 1258, in do_remove
    if not cache.commit(fetchprogress, installprogress):
  File "/usr/lib/python2.4/site-packages/apt/cache.py", line 204, in commit
    res = self.installArchives(pm, installProgress)
  File "/usr/lib/python2.4/site-packages/apt/cache.py", line 179, in installArchives
    res = installProgress.run(pm)
  File "/usr/share/ubiquity/install.py", line 200, in run
    res = pm.DoInstall(self.writefd)
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)

Related branches

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Could you please attach /var/log/syslog, and /var/log/partman to this bug, by commenting on the bug's web page? Thanks in advance.

Changed in ubiquity:
status: Unconfirmed → Needs Info
Revision history for this message
Vassilis Pandis (pandisv) wrote :

Can you please try to get those log files?

Revision history for this message
Colin Watson (cjwatson) wrote :

So, regardless of the cause, dpkg crashed and ubiquity fell over in a heap. Obviously it would be better if dpkg didn't crash, but what you really want if possible is for the installation to limp along and complete as best it can so that you can (a) use your system and (b) investigate in a more congenial environment.

I'm going to attempt to detect this condition, display a warning message, and continue; this also fixes a couple of other sets of bugs.

Colin Watson (cjwatson)
Changed in ubiquity:
assignee: nobody → kamion
status: Needs Info → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

ubiquity (1.4.5) feisty; urgency=low

  * Handle migration-assistant/failed-unmount being asked from ma-apply.
  * If installing or removing packages fails, then display a helpful error
    message and try to continue rather than crashing; furthermore, avoid
    installing language packs or removing packages when there are broken
    packages on the target system (LP: #54282, #69470, #80938).
  * Don't crash if Install exits due to SIGINT, SIGTERM, or SIGKILL, since
    these are probably user-generated.
  * Prepare for partman-partitioning/confirm_resize being asked during
    autopartitioning (partman-auto 62ubuntu9).
  * Do a better job of trying to get the exit code of subsidiary processes.
  * Update translations from Rosetta.
  * Automatic update of included source packages: hw-detect 1.45ubuntu3,
    migration-assistant 0.4.3, partman-auto 62ubuntu9, partman-base
    105ubuntu2, user-setup 1.8ubuntu3.

 -- Colin Watson <email address hidden> Sat, 31 Mar 2007 01:26:33 +0100

Changed in ubiquity:
status: Fix Committed → 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.