Instalando o cURL no Ubuntu

2

Estou tentando instalar o cURL no meu servidor Ubuntu usando o comando

sudo apt-get install php5-curl

No entanto, recebo o seguinte erro

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

Estou executando o PHP Versão 5.3.2-0.dotdeb.1 no meu servidor.

Quando eu tento este comando

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

Eu recebo a seguinte saída

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl3-dev is a virtual package provided by:
  libcurl4-openssl-dev 7.18.2-8ubuntu4.1
You should explicitly select one to install.
E: Package libcurl3-dev has no installation candidate
root@server:~# sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl3-dev is a virtual package provided by:
  libcurl4-openssl-dev 7.18.2-8ubuntu4.1
You should explicitly select one to install.
E: Package libcurl3-dev has no installation candidate

Qual é o problema? Preciso me enrolar e correr.

    
por davykiash 24.02.2012 / 09:56

1 resposta

1

Depends: php5-common (= 5.2.6.dfsg.1-3ubuntu4.5) but 5.3.2-0.dotdeb.1 is to be installed

O apt não está confortável com o seu 5.3.2-0.dotdeb.1 , por isso ele perde o php5-common .

conserte sua versão do php. A maneira mais fácil deve ser instalar o php5-common regularmente no apt e tentar novamente.

    
por 24.02.2012 / 18:06

Tags