Não é possível instalar o curl no Debian

1

Estou tentando instalar o Curl no Debian, mas infelizmente recebo o seguinte erro:

The following packages have unmet dependencies: curl : Depends: libcurl3-gnutls (= 7.47.0-1) but 7.38.0-4+deb8u2 is to be installed E: Unable to correct problems, you have held broken packages.

Eu tentei resolver isso usando: sudo apt-get autoremove como outro tópico sugeriu, mas continuo tendo o mesmo problema.

Como posso resolver isso?

Editar:

Aqui está a saída de apt-cache policy :

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ftp.debian.org/debian/ testing/non-free Translation-en
 500 http://ftp.debian.org/debian/ testing/main Translation-en
 500 http://ftp.debian.org/debian/ testing/contrib Translation-en
 500 http://ftp.debian.org/debian/ testing/non-free amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=non-free
     origin ftp.debian.org
 500 http://ftp.debian.org/debian/ testing/contrib amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=contrib
     origin ftp.debian.org
 500 http://ftp.debian.org/debian/ testing/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main
     origin ftp.debian.org
 500 http://security.debian.org/ jessie/updates/non-free Translation-en
 500 http://security.debian.org/ jessie/updates/main Translation-en
 500 http://security.debian.org/ jessie/updates/contrib Translation-en
 500 http://security.debian.org/ jessie/updates/non-free amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=non-free
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/contrib amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=contrib
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/main amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin security.debian.org
 500 http://mirrors.online.net/debian/ jessie/non-free Translation-en
 500 http://mirrors.online.net/debian/ jessie/main Translation-en
 500 http://mirrors.online.net/debian/ jessie/contrib Translation-en
 500 http://mirrors.online.net/debian/ jessie/contrib amd64 Packages
     release v=8.4,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
     origin mirrors.online.net
 500 http://mirrors.online.net/debian/ jessie/non-free amd64 Packages
     release v=8.4,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
     origin mirrors.online.net
 500 http://mirrors.online.net/debian/ jessie/main amd64 Packages
     release v=8.4,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin mirrors.online.net
Pinned packages:
     nginx -> 1.10.0-1

E aqui está o conteúdo de /etc/apt/sources.list :

# deb http://mirrors.online.net/debian jessie main

deb http://mirrors.online.net/debian jessie main non-free contrib
deb-src http://mirrors.online.net/debian jessie main non-free contrib

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

deb http://ftp.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.debian.org/debian/ testing main contrib non-free
    
por Mehdi 29.05.2016 / 16:35

2 respostas

1

O pacote libcurl3-gnutls (= 7.47.0-1) vem de testing e está instalado, para corrigir as dependências do curl você precisa fazer o downgrade libcurl3-gnutls versão de 7.47 para 7.38 usando aptitude (porque é mais útil que apt-get ).

Abra o terminal e digite o seguinte comando:

sudo aptitude -f install libcurl3-gnutls

Siga as instruções e escolha o downgrade do pacote.

    
por 30.05.2016 / 16:00
-1

Você precisa atualizá-lo e instalar o curl novamente.

sudo apt-get -f upgrade.

então

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

    
por 06.06.2018 / 14:22