LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 785|回复: 2

(已解决,方法见三楼)layman错误

[复制链接]
发表于 2008-10-11 18:22:24 | 显示全部楼层 |阅读模式
按照以下步骤安装layman后
emerge layman
sed -i -e 's/\(nocheck.*\)no/\1yes/' /etc/layman/layman.cfg
echo "source /usr/local/portage/layman/make.conf" >> /etc/make.conf
mkdir -p /usr/local/portage/layman
echo PORTDIR_OVERLAY=\"\" > /usr/local/portage/layman/make.conf
USE="-nowebdav" emerge subversion

执行layman -f -a gentoo-china 或layman -L或layman -S等命令时均出现以下错误

* Failed to update the overlay list from: http://www.gentoo.org/proj/en/overlays/layman-global.txt
* Error was:
* Failed to parse the overlays list fetched from http://www.gentoo.org/proj/en/overlays/layman-global.txt
* This means that the downloaded file is somehow corrupt or there was a problem with the webserver. Check the content of the file. Error was:
* Failed to parse the overlay list!
* Error was:
* No module named pyexpat
* Failed to read a cached version of the overlay list from http://www.gentoo.org/proj/en/overlays/layman-global.txt. You probably did not download the file before. The corresponding entry in your layman.cfg file will be disregarded.
* Error was:
* Failed to read the overlay list at ("/usr/local/portage/layman/cache_65bd38402ac8431067b54904bd2ed2d1.xml")!
* Error was:
* [Errno 2] No such file or directory: '/usr/local/portage/layman/cache_65bd38402ac8431067b54904bd2ed2d1.xml'

该如何解决?
发表于 2008-10-11 18:42:50 | 显示全部楼层
* No module named pyexpat
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-11 19:16:48 | 显示全部楼层
谢谢版主,问题解决了,是因为没有安装dev-python/pyxml引起的
解决方法如下
emerge pyxml然后再运行layman就可以了:)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表