抱歉,我不知道如何解决依赖问题。
我的 Ubuntu 服务器是 12.04 64 位
$ sudo apt-get install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
libcurl4-openssl-dev : Depends: libcurl3 (= 7.19.7-1ubuntu1.5) but 7.22.0-3ubuntu4.2 is to be installed
Depends: libidn11-dev but it is not going to be installed
Depends: libldap2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答案1
这看起来像是一个仅从 10.04 部分升级到 12.04 的系统。要解决此问题,您需要完成升级。
编辑
/etc/apt/sources.list
所有出现的 ,并将其替换lucid
为precise
。编辑目录中的所有文件
/etc/apt/sources.list.d
并应用与上述相同的替换。如果上述任何文件有Ubuntu 代号 其他比,也
precise
将它们改为。precise
编辑
/etc/apt/preferences
并删除您可能已完成的所有固定。完成升级:
sudo apt-get update && sudo apt-get dist-upgrade
重新启动计算机。
现在尝试再次安装您的软件。