0

在 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 但错误仍然存​​在。此外,我还尝试在突触中安装所有系统升级,但仍然没有运气解决这个问题。

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

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

4

1 回答 1

0

经过几个小时试图解决这个问题,我发现 ubuntuaptitude在这里帮了我很多。

首先,我通过键入以下内容安装 aptitude:

sudo apt-get install aptitude

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

sudo aptitude install DependencyPackage

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

于 2016-06-06T00:45:16.880 回答