Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to install libcurl-dev. When sudo apt-get install libcurl4-dev fails.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting libcurl4-gnutls-dev instead of libcurl4-dev
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: libkrb5-dev but it is not going to be installed or
                                hurd but it is not installable
                       Depends: libldap2-dev but it is not going to be installed
E: Broken packages

Okay. So I tried to install libcurl4-gnutls-dev. Again the error.

$ 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: libkrb5-dev but it is not going to be installed or
                                hurd but it is not installable
                       Depends: libldap2-dev but it is not going to be installed
E: Broken packages

My system is 64bit Kubuntu 10.04 LTS. Completely updated.

Question is how do I install libcurl-dev so that I have curl/curl.h ?

share|improve this question

closed as too localized by Bruno Pereira Mar 18 '12 at 15:33

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Try running sudo apt-get update and then installing ibcurl4-dev again. If the problem persists, consider filing a bug report. –  bodhi.zazen Dec 25 '11 at 6:12
    
I chose the "downgrade" options.... I am using ubuntu11 –  Siwei Shen Mar 30 '12 at 6:23
add comment

Browse other questions tagged or ask your own question.