Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Am trying to install cURL on my ubuntu server using the command

sudo apt-get install php5-curl

However i get the following error

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:
php5-curl: Depends: phpapi-20060613+lfs
Depends: php5-common (= 5.2.6.dfsg.1-3ubuntu4.5) but 5.3.2-0.dotdeb.1 is to be installed
E: Broken packages

I am running PHP Version 5.3.2-0.dotdeb.1 on my server. Whats the issue? I need to get curl up and running.

share|improve this question

3 Answers 3

up vote 2 down vote accepted

It looks like you have installed php5-common from the Dotdeb repository, but Dotdeb do not provide a php5-curl package. You either need to replace PHP with the version from the official Ubuntu repositories, or you need to build php5-curl yourself against the Dotdeb version.

share|improve this answer

It seems the package is broken in your source.

Maybe you can test this:

apt-get install curl

share|improve this answer

Firstly, you may want run this command sudo apt-get update

share|improve this answer
2  
Could you expand your answer a little and tell us why this would solve the problem? Thanks! –  slhck Aug 2 '12 at 21:01
    
apt-get update refreshes your server's package list from the mirrors, ensuring you don't download old packages and that there are new inconsistencies in your package database. –  cookiecaper Dec 18 '13 at 13:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.