libcurl4-gnutls-dev:依赖:libldap2-dev 但是它将不会被安装

libcurl4-gnutls-dev:依赖:libldap2-dev 但是它将不会被安装

我正在尝试在我的 ubuntu 服务器中安装 curl,但出现了这个错误 -

fatal error: curl.h: No such file or directory

以下是错误-

username@phx7b02c-ee1b:~$ sudo apt-get install libcurl4-gnutls-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-gnutls-dev : Depends: libldap2-dev but it is not going to be installed
E: Broken packages

我不确定我在这里做错了什么?

更新:-

我的 Ubuntu 版本 -

username@phx7b02c-ee1b:~$ uname -a
Linux phx7b02c-ee1b 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19 20:48:58 UTC 2010 x86_64 GNU/Linux

答案1

如同其他问题关于“无法安装某些软件包”,尝试

apt-get update
apt-get autoremove
apt-get install -f

相关内容