libcurl4-gnutls-dev: Зависит от libldap2-dev, но он не будет установлен

Я пытаюсь установить curl на моем сервере ubuntu, поскольку я получал эту ошибку всякий раз, когда компилирую свой код на C ++ –

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 

Я не уверен, что я здесь делаю неправильно?

Версия моего ядра:

 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 

А также, когда мне это нравится, я всегда получаю завиток

 curl --version curl 7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18 Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

Обновить:-

Это то, что я получил –

 /etc/apt/preferences -bash: /etc/apt/preferences: No such file or directory /etc/apt/sources.list.d/*.list -bash: /etc/apt/sources.list.d/ebay-packages.list: Permission denied /etc/apt/preferences.d/* -bash: /etc/apt/preferences.d/*: No such file or directory /etc/apt/sources.list -bash: /etc/apt/sources.list: Permission denied и /etc/apt/preferences -bash: /etc/apt/preferences: No such file or directory /etc/apt/sources.list.d/*.list -bash: /etc/apt/sources.list.d/ebay-packages.list: Permission denied /etc/apt/preferences.d/* -bash: /etc/apt/preferences.d/*: No such file or directory /etc/apt/sources.list -bash: /etc/apt/sources.list: Permission denied 

Linux и Unix - лучшая ОС в мире.