libcurl4-openssl-dev 的未满足依赖项

Cha*_* Ye 4 linux ubuntu r

我需要libcurl4-openssl-dev在 ubuntu 14.04上安装

我已经尝试过sudo apt-get install libcurl4-openssl-devand sudo apt-get install -f libcurl4-openssl-dev,但返回:

The following packages have unmet dependencies: libcurl4-openssl-dev : Depends: librtmp-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.

然后我尝试sudo apt-get install librtmp-dev,返回:

The following packages have unmet dependencies: librtmp-dev : Depends: libgnutls-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages

然后 .. sudo apt-get install libgnutls-dev,返回:

The following packages have unmet dependencies: libgnutls-dev : Depends: libgcrypt11-dev (>= 1.4.0) but it is not going to be installed Depends: libtasn1-6-dev but it is not going to be installed Depends: libp11-kit-dev (>= 0.4) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

依赖是无止境的...

小智 5

我在 Ubuntu 14.04 上的 R 中安装 RCurl 时遇到了这个完全相同的问题。问题是 libcurl4-openssl-dev 依赖于 librtmp-dev,后者依赖于 libgnutls-dev,而后者依赖于 libgcrypt11-dev (>=1.4.0)。

Ubuntu 14.04(至少是我的发行版)有 libgcrypt20-dev,它不允许在同一环境中使用 20 版和 11 版。但是,您可以安装它

sudo apt-get build-dep libcurl4-openssl-dev
sudo apt-get install libcurl4-openssl-dev
Run Code Online (Sandbox Code Playgroud)

但它将用版本 11 替换 libgcrypt20-dev。