我将在 Ubuntu 虚拟机上建立一个计算节点。
我正在按照上面写的步骤操作配置计算节点 - OpenStack Ubuntu 12.04 (LTS) 安装指南 - havana
我被困在apt-get install nova-compute-kvm python-guestfs
我收到以下错误信息:
Package python-guestfs is not available, but is referred to by another package.
E:Package 'python-guestfs' has no installation candidate
我应该怎么做才能使安装成功?
答案1
看起来这个包在宇宙知识库。
首先,尝试运行apt-get update
以确保您拥有有关最新软件包的信息。如果在运行 apt-get update 后仍无法安装它,则可能是您的服务器上未启用此 repo。
您可以通过在终端中运行以下命令来检查此存储库是否已启用:
cat /etc/apt/sources.list | grep universe
此命令的输出应如下所示:
deb http://mirrors.linode.com/ubuntu/ precise universe
deb-src http://mirrors.linode.com/ubuntu/ precise universe
deb http://mirrors.linode.com/ubuntu/ precise-updates universe
deb-src http://mirrors.linode.com/ubuntu/ precise-updates universe
deb http://mirrors.linode.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.linode.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
如果没有输出,则将以下行添加到/etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
如果输出被注释掉,#
则删除/etc/apt/sources.list
然后你就可以运行apt-get update
然后apt-get install python-guestfs