centos 5.3 在 virtualbox下无法安装 出现的python错误居然是因为内存不足造成的。
virtualbox默认虚拟机是 256M内存,而 centos的安装是需要更多内存的。至少384M内存。
但是奇怪的是出错提示居然是提示 python 出错。所以导致走了不少弯路。
后来在 http://www.ctheworld.cn/2009/09/net-install-centos5-on-virtualbox/ 查到 原来是这样的理由。
错误信息:
Traceback (most recent call first):
File "/usr/lib/python2.4/subprocess.py", line 975, in _execute_child
raise child_exception
File "/usr/lib/python2.4/subprocess.py", line 542, in __init__
errread, errwrite)
File "/usr/lib/anaconda/iutil.py", line 488, in inVmware
proc = subprocess.Popen(lspci, stdout = subprocess.PIPE)
File "/usr/lib/anaconda/yuminstall.py", line 860, in doGroupSetup
if iutil.inXen() or iutil.inVmware() or \
File "/usr/lib/anaconda/yuminstall.py", line 942, in doRepoSetup
self.doGroupSetup()
File "/usr/lib/anaconda/backend.py", line 172, in doRepoSetup
anaconda.backend.doRepoSetup(anaconda)
File "/usr/lib/anaconda/dispatch.py", line 201, in moveStep
rc = stepFunc(self.anaconda)
File "/usr/lib/anaconda/dispatch.py", line 124, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/text.py", line 721, in run
anaconda.dispatch.gotoNext()
File "/usr/bin/anaconda", line 1006, in ?
anaconda.intf.run(anaconda)
OSError: [Errno 2] No such file or directory