데비안에 컬을 설치할 수 없습니다

데비안에 컬을 설치할 수 없습니다

Debian에 Curl을 설치하려고 하는데, 불행하게도 다음과 같은 오류가 발생합니다:

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.

다른 스레드가 제안한 대로 다음을 사용하여 이 문제를 해결하려고 시도했지만 sudo apt-get autoremove여전히 동일한 문제가 있습니다.

이 문제를 어떻게 해결할 수 있나요?

편집하다:

출력은 다음과 같습니다 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

내용은 다음과 같습니다 /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

답변1

다운그레이드해야 하는 종속성을 수정하기 위해 패키지가 제공되고 설치 됩니다 libcurl3-gnutls (= 7.47.0-1).testingcurllibcurl3-gnutls버전을 에서 사용 7.47으로 변경하세요 (보다 더 유용하기 때문입니다 ).7.38aptitudeapt-get

터미널을 열고 다음 명령을 입력하십시오.

sudo aptitude -f install libcurl3-gnutls

지침에 따라 패키지를 다운그레이드하도록 선택합니다.

답변2

간단히 말해서, 업그레이드한 다음 컬을 다시 설치해야 합니다.

sudo apt-get -f 업그레이드.

그 다음에

sudo apt-get 설치 컬 libcurl3 libcurl3-dev php5-curl

관련 정보