在ceph中安装依赖项

时间:2016-06-02 09:18:05

标签: c++ ubuntu ubuntu-14.04 ceph

在ubuntu 14.04上安装ceph时遇到依赖关系时遇到问题。根据此处的文档https://github.com/ceph/ceph/tree/infernalis,将通过运行

来实现依赖关系
./install-deps.sh

但是,在我的情况下,我收到了这样的错误消息:

uuid-runtime is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libblkid-dev : Depends: libblkid1 (= 2.20.1-5.1ubuntu20) but 2.20.1-5.1ubuntu20.1 is to be installed
                Depends: uuid-dev but it is not going to be installed
 libboost-system-dev : Depends: libboost-system1.54-dev but it is not going to be installed
 libboost-thread-dev : Depends: libboost-thread1.54-dev but it is not going to be installed
 libcurl4-gnutls-dev : Depends: libkrb5-dev but it is not going to be installed
 libfuse-dev : Depends: libselinux-dev
 liblttng-ust-dev : Depends: uuid-dev but it is not going to be installed
 libudev-dev : Depends: libudev1 (= 204-5ubuntu20) but 204-5ubuntu20.14 is to be installed
 xfslibs-dev : Depends: uuid-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试运行apt-get update,然后运行apt-get install -f  但错误仍然存​​在。另外,我还尝试在synaptic中安装所有系统升级,但仍然没有运气来解决这个问题。

在最后一次机会中,我也尝试运行sudo apt-get install libuuid1=2.20.1-5.1ubuntu20。此命令导致一些库从系统中删除,但依赖性仍然不满足。

请与我分享输入我如何面对这个问题。谢谢!

1 个答案:

答案 0 :(得分:0)

在尝试解决这个问题的几个小时后,我发现ubuntu aptitude在这里给了我很多帮助。

首先,我输入:安装aptitude:

  

sudo apt-get install aptitude

然后通过键入以下内容逐个安装依赖项:

  

sudo aptitude install DependencyPackage

一旦我运行命令,它将有几个选项可供选择。在我的情况下,我忽略了第一个提案解决方案并选择了第二个(在我的计算机上安装了一些nwq软件包)。