在安装openstack时,在Ubuntu 14.04中我收到以下错误
chinmay123@ubuntu:~$ sudo apt-get install openstack
Reading package lists... Done
Building dependency tree
Reading state information... Done
无法安装某些软件包。这可能意味着你有 请求一个不可能的情况或如果您使用不稳定 尚未创建某些必需包的分发 或被移出Incoming。 以下信息可能有助于解决问题:
The following packages have unmet dependencies: openstack : Depends: juju-core but it is not going to be installed Depends: libvirt-bin but it is not going to be installed Depends: pollinate but it is not going to be installed Depends: python-neutronclient but it is not installable Depends: python-openstackclient but it is not installable Depends: python3-bson but it is not installable Depends: python3-jinja2 but it is not installable Depends: python3-kombu but it is not going to be installed Depends: python3-mock but it is not installable Depends: python3-nose but it is not installable Depends: python3-passlib but it is not installable Depends: python3-requests-oauthlib but it is not installable Depends: python3-ws4py but it is not installable E: Unable to correct problems, you have held broken packages. chinmay123@ubuntu:~$
我不知道为什么会这样,请指导我如何继续。
答案 0 :(得分:1)
系统可能正在尝试安装适用于Ubuntu Xenial(16.04)的最新存储库 - 即OpenStack Newton。最简单的方法是使用16.04 Ubuntu来运行安装。
您可以使用
添加Mitaka资源库 Standard port (TCP port 11211. Needs SASL auth.)
否则,您可以使用命令安装它(在添加cloud-installer稳定存储库之后(请删除您可能已安装的任何其他存储库)
sudo add-apt-repository cloud-archive:mitaka
如果有帮助,请告诉我
答案 1 :(得分:0)
您收到此消息是因为存在未满足的依赖项。
你有很多选择。
使用apt
这是处理问题的最难的方法,因为您的依赖项也可能具有依赖项,但您可以在错误消息中看到您需要安装的内容。
sudo gdebi package.deb
使用此包管理器,它也获取依赖项(或GUI版本gdebi-gtk
)
如果您使用apt
但缺少相关性,则可以尝试使用sudo apt-get -f install
修复
我引用了OpenStack的网站,我对此解决方案了解不多,但听起来很有希望:
Canonical的Ubuntu Cloud存档允许用户安装 Ubuntu Server 12.04 LTS上的OpenStack的更新版本(和 因为它们可以通过下一个Ubuntu LTS获得 释放(大概是14.04)。
有关详细信息,请参阅https://wiki.ubuntu.com/ServerTeam/CloudArchive。
我从#3开始,因为你已经运行了apt
。