在 ceph 中安装依赖项

Installing dependencies in ceph

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

完成
./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。此命令生成的一些库已从系统中删除,但依赖关系仍未得到满足。

请与我分享我如何面对这个问题的意见。谢谢!

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

首先,我通过键入安装 aptitude:

sudo apt-get install aptitude

然后通过键入以下内容手动一一安装依赖项:

sudo aptitude install DependencyPackage

一旦我 运行 命令,它将有几个选项可供选择。就我而言,我忽略了第一个建议解决方案并选择了第二个(在我的计算机上安装一些 nwq 包)。