Installing cURL on Ubuntu

2

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.

davykiash

Posted 2012-02-24T08:37:20.600

Reputation: 123

Answers

2

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.

mgorven

Posted 2012-02-24T08:37:20.600

Reputation: 2 539

0

It seems the package is broken in your source.

Maybe you can test this:

apt-get install curl

Michael

Posted 2012-02-24T08:37:20.600

Reputation: 1

0

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

Mustafa Magdi

Posted 2012-02-24T08:37:20.600

Reputation: 101

2Could you expand your answer a little and tell us why this would solve the problem? Thanks! – slhck – 2012-08-02T21:01:14.520

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. – jeffcook2150 – 2013-12-18T13:05:24.853