installing pinguy os /usr/share/ubiquity/plugininstall.py", line 1728, in <module>

Bug #1063186 reported by dave wallace
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Confirmed
High
Unassigned

Bug Description

I have tried to install Pinguy 12.04 and the installer crashed around 90% the way through...bummer

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubiquity 2.10.20 [modified: usr/lib/ubiquity/user-setup/user-setup-apply usr/share/ubiquity/apt-setup]
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
Uname: Linux 3.2.0-31-generic x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
CasperVersion: 1.315
Date: Sun Oct 7 11:55:48 2012
InstallCmdLine: file=/cdrom/preseed/custom.seed boot=casper only-ubiquity initrd=/casper/initrd.gz quiet splash -- BOOT_IMAGE=/casper/vmlinuz
LiveMediaBuild: Custom 12.04 - Release amd64
ProcEnviron:
 LANGUAGE=en_GB.UTF-8
 TERM=hostname
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dave wallace (ukspreads) wrote :
Revision history for this message
Sasa Paporovic (melchiaros) wrote :
Download full text (4.7 KiB)

In UbiquitySyslog.txt:

Oct 7 21:53:10 linux localechooser: Generating locales...
Oct 7 21:53:10 linux localechooser: en_GB.UTF-8...
Oct 7 21:53:12 linux localechooser: done
Oct 7 21:53:12 linux localechooser: Generation complete.
Oct 7 21:53:12 linux localechooser: Generating locales...
Oct 7 21:53:12 linux localechooser: en_US.UTF-8...
Oct 7 21:53:12 linux localechooser: up-to-date
Oct 7 21:53:12 linux localechooser: Generation complete.
Oct 7 21:53:12 linux ubiquity: Traceback (most recent call last):
Oct 7 21:53:12 linux ubiquity: File "/usr/bin/fontconfig-voodoo", line 6, in <module>
Oct 7 21:53:12 linux ubiquity: from LanguageSelector import FontConfig
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.py", line 18, in <module>
Oct 7 21:53:12 linux ubiquity: from utils import language2locale
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/dist-packages/LanguageSelector/utils.py", line 9, in <module>
Oct 7 21:53:12 linux ubiquity: import tempfile
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/tempfile.py", line 34, in <module>
Oct 7 21:53:12 linux ubiquity: from random import Random as _Random
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/random.py", line 881, in <module>
Oct 7 21:53:12 linux ubiquity: _inst = Random()
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/random.py", line 97, in __init__
Oct 7 21:53:12 linux ubiquity: self.seed(x)
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/random.py", line 111, in seed
Oct 7 21:53:12 linux ubiquity: a = long(_hexlify(_urandom(16)), 16)
Oct 7 21:53:12 linux ubiquity: OSError: [Errno 2] No such file or directory: '/dev/urandom'
Oct 7 21:53:12 linux ubiquity: Error in sys.excepthook:
Oct 7 21:53:12 linux ubiquity: Traceback (most recent call last):
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in apport_excepthook
Oct 7 21:53:12 linux ubiquity: from apport.fileutils import likely_packaged, get_recent_crashes
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
Oct 7 21:53:12 linux ubiquity: from apport.report import Report
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/dist-packages/apport/report.py", line 12, in <module>
Oct 7 21:53:12 linux ubiquity: import subprocess, tempfile, os.path, urllib, re, pwd, grp, os
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/tempfile.py", line 34, in <module>
Oct 7 21:53:12 linux ubiquity: from random import Random as _Random
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/random.py", line 881, in <module>
Oct 7 21:53:12 linux ubiquity: _inst = Random()
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/random.py", line 97, in __init__
Oct 7 21:53:12 linux ubiquity: self.seed(x)
Oct 7 21:53:12 linux ubiquity: File "/usr/lib/python2.7/random.py", line 111, in seed
Oct 7 21:53:12 linux ubiquity: a = long(_hexlify(_urandom(16)), 16)
Oct 7 21:53:12 linux ubiquity: OSError: [Errno 2] No such file or d...

Read more...

Revision history for this message
Sasa Paporovic (melchiaros) wrote :
Download full text (4.3 KiB)

In UbiquitySyslog.txt:

Oct 7 21:55:37 linux plugininstall.py: log-output -t ubiquity umount /target/cdrom
Oct 7 21:55:38 linux finish-install: Disabling CD in sources.list
Oct 7 21:55:38 linux plugininstall.py: Exception during installation:
Oct 7 21:55:38 linux plugininstall.py: Traceback (most recent call last):
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1728, in <module>
Oct 7 21:55:38 linux plugininstall.py: install.run()
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 55, in wrapper
Oct 7 21:55:38 linux plugininstall.py: func(self)
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 215, in run
Oct 7 21:55:38 linux plugininstall.py: self.remove_extras()
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1482, in remove_extras
Oct 7 21:55:38 linux plugininstall.py: self.do_remove(recursive, recursive=True)
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1090, in do_remove
Oct 7 21:55:38 linux plugininstall.py: cache.open(None)
Oct 7 21:55:38 linux plugininstall.py: File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 147, in open
Oct 7 21:55:38 linux plugininstall.py: self._records = apt_pkg.PackageRecords(self._cache)
Oct 7 21:55:38 linux plugininstall.py: SystemError: E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_main_binary-i386_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_multiverse_binary-amd64_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_universe_binary-amd64_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_restricted_binary-amd64_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_main_binary-amd64_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_universe_i18n_Translation-en - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_i18n_Translation-en - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_i18n_Translation-en - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_main_i18n_Translation-en - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_binary-i386_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_univers...

Read more...

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

I think the second stacktrace I have copied out is it.

summary: - installing pinguy os
+ installing pinguy os /usr/share/ubiquity/plugininstall.py", line 1728,
+ in <module>
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote : Traceback
Download full text (3.2 KiB)

Exception during installation:
Oct 7 21:55:38 linux plugininstall.py: Traceback (most recent call last):
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1728, in <module>
Oct 7 21:55:38 linux plugininstall.py: install.run()
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 55, in wrapper
Oct 7 21:55:38 linux plugininstall.py: func(self)
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 215, in run
Oct 7 21:55:38 linux plugininstall.py: self.remove_extras()
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1482, in remove_extras
Oct 7 21:55:38 linux plugininstall.py: self.do_remove(recursive, recursive=True)
Oct 7 21:55:38 linux plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1090, in do_remove
Oct 7 21:55:38 linux plugininstall.py: cache.open(None)
Oct 7 21:55:38 linux plugininstall.py: File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 147, in open
Oct 7 21:55:38 linux plugininstall.py: self._records = apt_pkg.PackageRecords(self._cache)
Oct 7 21:55:38 linux plugininstall.py: SystemError: E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_main_binary-i386_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_multiverse_binary-amd64_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_universe_binary-amd64_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_restricted_binary-amd64_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-backports_main_binary-amd64_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_universe_i18n_Translation-en - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_i18n_Translation-en - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_i18n_Translation-en - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_main_i18n_Translation-en - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_binary-i386_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_universe_binary-i386_Packages - open (24: Too many open files), E:Could not open file /target/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages - open (24: Too many open f...

Read more...

tags: added: installer-crash
Changed in ubiquity (Ubuntu):
importance: Undecided → High
Revision history for this message
mk (mk.pmb) wrote :

Hotfix for Ubiquity crash due to "too many open files" when using python's apt cache module, based on Jason Conti's hint in https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1051935 .

I had the same problem at another stage of install, sounds like the resource depletion discussed in link above.
Downloading the attached hotfix into the LiveCD session and running it solved the error for me, but use at own risk as indicated by the disclaimer.

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.