Gentoo配置手记(10/08/07)
我又开始折腾了-___,-
1. 不小心删除了Python
按Gentoo handbook折腾了一天把系统安装好了,于是我就决定emerge一下Python,结果把Python3也给装上了。想删除Python3结果直接把Python2.6一并咔嚓了。彼时还没有认识到问题的严重性,结果后来发现emerge命令执行之后完全没反应,问题严重了。翻开Portage Introduction:
Portage is completely written in Python and Bash.
Gentoo的Portage系统是依赖于Python的,so don’t ever unmerge Python completely!
问题解决方法就是重新编译安装Python:
# cd # tar xzf /usr/portage/distfiles/Python-2.6.5.tgz # cd Python-2.6.5 # ./configure --with-fpectl --infodir=/usr/share/info/ --mandir=/usr/share/man # make # make install prefix=/usr # rm /usr/bin/python 2>/dev/null # ln -s /usr/bin/python2 /usr/bin/python
Reference: [Gentoo Forums] I unmerged python… ensuing problems….
2. 无线网卡无法识别
首先确定网卡型号及驱动模块是否已加载:
# lspci | grep Wireless 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
搜索该网卡对应的内核模块应为iwlagn,完整的网卡型号与驱动模块对应列表可从 Drivers – Linux Wireless 获得。
# lsmod | grep iwlagn iwlagn 173410 0 iwlcore 174978 1 iwlagn mac80211 128158 2 iwlagn,iwlcore cfg80211 119296 3 iwlagn,iwlcore,mac80211
iwlagn已经正确加载,但是无线网卡仍然无法识别(wlan0: device not found)。
原来还有重要的一步没有做: Software Setup – Installing the microcode files。
# emerge -av net-wireless/iwl5000-ucode
之后无线网卡就可以正确识别了。
Refrence: Iwlwifi — Gentoo Linux Wiki
3. udev更新问题(2010-08-07)
昨天运行了一下emerge -uDN,今早启动系统的时候报错:
* Checking root filesystem...
fsck.ext3: No such file or directory while trying to open /dev/sda6
/dev/sda6:
The superblock could not be read or does not describe a correct ext 2 filessytem.
If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else,
then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193
* Filesystem coudn't be fixed
这个问题很好解决,只要利用livecd进入chroot(参见Gentoo handbook),downgrade udev到之前的可用版本就OK了。
# emerge "<=sys-fs/udev-149"
Refrence: [Gentoo Forums] Installing Gentoo


