apport causes uncaught OSError after failed python2.6-minimal install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
I was doing a upgrade using the "sudo update-manager -d" GUI.
Several minutes pass with nothing displayed on the terminal but the GUI is happily upgrading along. A few times I get weird errors about something not configuring correctly (didn't have the presence of mind to write them down). I click OK for all of them. Then, about half a minute after one of these messages the upgrader crashes with this displayed on the console:
Error in sys.excepthook:
Traceback (most recent call last):
File "/tmp/tmpFzWtiO
if not run_apport():
File "/tmp/tmpFzWtiO
ret = subprocess.call(p)
File "/usr/lib/
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
Original exception was:
Traceback (most recent call last):
File "/tmp/tmpFzWtiO
main()
File "/tmp/tmpFzWtiO
app.run()
File "/tmp/tmpFzWtiO
self.
File "/tmp/tmpFzWtiO
if not self.doDistUpgr
File "/tmp/tmpFzWtiO
if not run_apport():
File "/tmp/tmpFzWtiO
ret = subprocess.call(p)
File "/usr/lib/
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
If you look at /tmp/tmpFzWtiO/
[14:38:55] ~$ /usr/share/
zsh: /usr/share/
Since the error happened as a result of the exec call it was probably passed up the chain as a OSError (the "no such file or directory") that nobody managed to catch.
well as it turns out, my python must have been in the process of upgrading at the time because when I do "apt-get -f install" I see this:
The following extra packages will be installed:
gedit lyx-common python2.6-minimal system-
update-
The following NEW packages will be installed:
python2.6-minimal
The following packages will be upgraded:
gedit lyx-common system-
4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
930 not fully installed or removed.
Need to get 0B/7306kB of archives.
After this operation, 4182kB of additional disk space will be used.
Do you want to continue [Y/n]?
These 5 packages are all the packages that had given me errors and I had to click through. After installing the problematic packages (this time it gave no errors) it proceeded to do "Setting up ..." for each other package that had changed in jaunty (a few hundred more), so basically the same thing the GUI was doing but now in the terminal.
Things are now working after doing that "apt-get -f install" so it's hard for me to tell why I was having problems, but it may be worth looking at the error handling code.
I'm attaching code to add exception handlers around the calls to "subprocess.call()"
Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e . I have classified this bug as a bug in apport.