无法安装包python-guestfs

时间:2014-05-06 13:46:50

标签: python module install package ubuntu-11.10

我有ubuntu 11.10(oneiric)我试图运行一个名为snf-image-creator的程序(用于创建虚拟机) 我收到错误:

File "/usr/local/bin/snf-image-creator", line 9, in <module>
load_entry_point('snf-image-creator==0.5.1', 'console_scripts', 'snf-image-creator')()
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 351, in load_entry_point
def get_resource_filename(manager, resource_name):
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2363, in load_entry_point
def clone(self,**kw):
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2088, in load

File "/usr/local/lib/python2.7/dist-packages/snf_image_creator-0.5.1-py2.7.egg/image_creator/main.py", line 42, in <module>
  from image_creator.disk import Disk
File "/usr/local/lib/python2.7/dist-packages/snf_image_creator-0.5.1-py2.7.egg/image_creator/disk.py", line 43, in <module>
from image_creator.image import Image
File "/usr/local/lib/python2.7/dist-packages/snf_image_creator-0.5.1-py2.7.egg/image_creator/image.py", line 41, in <module>
import guestfs

ImportError:没有名为guestfs的模块

所以我尝试安装guestfs。我使用了apt-get install python-guestfs 但我收到消息:

E: Unable to locate package python-guestfs

我还与apt-get install guestfs或libguestfs,python-libguestfs绑定。我在http://packages.ubuntu.com/中搜索了包裹,结果如下。我也使用了命令

sudo apt-file find guestfs 

但它没有返回任何东西。还命令

 aptitude install libguestfs 
 aptitude install guestfs

并且因为不再支持oneiric,我在/etc/apts/sources.list中进行了更改 链接:

 http://old-releases.ubuntu.com/ubuntu/

然后我做了

apt-get update
apt-get upgrade

我不知道还能做什么。

2 个答案:

答案 0 :(得分:1)

11.10现在已经近一年没有得到支持了。您可以尝试源安装,说明在项目自述文件中:

https://github.com/libguestfs/libguestfs

答案 1 :(得分:0)

如果你自己安装了guestf,那么你应该可以从github下载Python源代码:

然后你可以做一个Python源安装。这样的事情通常都需要:

python setup.py install

你可能必须在sudo之前加上它。