keyboard-configuration.postinst died with SIGPIPE
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
Binary package hint: ubiquity
ISO Testing Kubuntu Desktop AMD64 20110329
Ubiquity failed and exit during install.
TESTCASE
1. Boot to a live session
2. run ubiquity -d kde_ui
Error from syslog:
ar 29 14:41:31 ubuntu ubiquity: Mar 29 16:41:31 ubiquity: Starting up '['log-output', '-t', 'ubiquity', '--pass-stdout', '/usr/share/
Mar 29 14:41:31 ubuntu ubiquity: cp:
Mar 29 14:41:31 ubuntu ubiquity: cannot stat `/etc/default/
Mar 29 14:41:31 ubuntu ubiquity: : No such file or directory
Mar 29 14:41:31 ubuntu ubiquity:
Mar 29 14:41:31 ubuntu ubiquity: Mar 29 16:41:31 ubiquity: ['log-output', '-t', 'ubiquity', '--pass-stdout', '/usr/share/
Mar 29 14:41:31 ubuntu plugininstall.py: log-output -t ubiquity umount /target/cdrom
Mar 29 14:41:31 ubuntu finish-install: Disabling CD in sources.list
Mar 29 14:41:31 ubuntu plugininstall.py: Exception during installation:
Mar 29 14:41:31 ubuntu plugininstall.py: Traceback (most recent call last):
Mar 29 14:41:31 ubuntu plugininstall.py: File "/usr/share/
Mar 29 14:41:31 ubuntu plugininstall.py: install.run()
Mar 29 14:41:31 ubuntu plugininstall.py: File "/usr/share/
Mar 29 14:41:31 ubuntu plugininstall.py: func(self)
Mar 29 14:41:31 ubuntu plugininstall.py: File "/usr/share/
Mar 29 14:41:31 ubuntu plugininstall.py: self.configure_
Mar 29 14:41:31 ubuntu plugininstall.py: File "/usr/share/
Mar 29 14:41:31 ubuntu plugininstall.py: raise install_
Mar 29 14:41:31 ubuntu plugininstall.py: InstallStepError: Plugin console_setup failed with code 1
Mar 29 14:41:31 ubuntu plugininstall.py:
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: ubiquity 2.5.31
ProcVersionSign
Uname: Linux 2.6.38-7-generic x86_64
Architecture: amd64
Date: Tue Mar 29 16:48:18 2011
LiveMediaBuild: Kubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110329)
ProcEnviron:
LANGUAGE=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- Kubuntu Desktop failed to install + keyboard-configuration.postinst died with SIGPIPE |
tags: | added: iso-testing |
I tried to reproduce this: I selected English language and French keyboard at the gfxboot menu, as you did, launched the installer as you said, left the locale in English, and kept the French keyboard layout. The installation completed successfully.
That said, regardless of my ability to reproduce this, we may be able to get somewhere by inspection. The point where it falls over is:
debconf (developer): <-- GET keyboard- configuration/ variant ubiquity/ ubiquity/ filteredcommand .py", line 132, in process_line process_ line() ubiquity/ ubiquity/ debconffilter. py", line 281, in process_line 0].run( priority, question): ubiquity/ plugins/ ubi-console- setup.py" , line 418, in run ui.set_ keyboard_ variant( self.db. get(question) ) ubiquity/ ubiquity/ plugin. py", line 44, in wrapper ubiquity/ plugins/ ubi-console- setup.py" , line 307, in set_keyboard_ variant keyboardDisplay .setVariant( var) ubiquity/ ubiquity/ frontend/ kde_components/ Keyboard. py", line 68, in setVariant loadCodes( ) ubiquity/ ubiquity/ frontend/ kde_components/ Keyboard. py", line 233, in loadCodes e()[0] python2. 7/subprocess. py", line 732, in communicate ubiquity/ console- setup/keyboard- configuration. postinst' , 'configure'] exited with code 141
debconf (developer): --> 1 France - Alternative
Exception caught in process_line:
Traceback (most recent call last):
File "/usr/lib/
return self.dbfilter.
File "/usr/lib/
if not input_widgets[
File "/usr/lib/
self.
File "/usr/lib/
return target(self, *args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
cfile = pipe.communicat
File "/usr/lib/
stdout = self.stdout.read()
IOError: [Errno 4] Interrupted system call
Mar 29 16:38:01 ubiquity: ['log-output', '-t', 'ubiquity', '--pass-stdout', '/usr/lib/
What did you do when the keyboard page was displayed? Did you change the keyboard layout or variant? I wonder if this happens if they're changed twice in quick succession, or something like that.
http:// bugs.python. org/issue9867 is related to this. Although some parts of subprocess were fixed to handle EINTR in http:// bugs.python. org/issue106826 8, communicate wasn't.
It's extremely tempting to either monkey-patch subprocess. Popen.communica te to work around this, or to add a helper function.