Git을 설치하려고 할 때 충족되지 않은 종속성

Git을 설치하려고 할 때 충족되지 않은 종속성

이런 유형의 질문을 많이 받는다는 것을 알고 있으며 많은 스레드를 읽었습니다(특히이것) "쉬운" 해결책을 찾지 않고( DEBIAN/control패키지 파일을 편집하지 않고) 이런 종류의 문제를 해결합니다.

문제는 이것이다:

Lila ~ # apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1757 not upgraded.

Lila ~ # cat /etc/apt/sources.list | grep -v '#'
deb [arch=amd64,i386]  http://ftp.fr.debian.org/debian/ stretch main non-free contrib
deb http://security.debian.org/debian-security stretch/updates main
deb http://ftp.debian.org/debian stretch-backports main
deb ftp://ftp.deb-multimedia.org stretch main non-free

Lila ~ # apt-cache policy git
git:
Installed: 1:2.11.0-3+deb9u1
Candidate: 1:2.11.0-3+deb9u1
Version table:
    1:2.14.1-3~bpo9+1 100
        100 http://ftp.debian.org/debian stretch-backports/main amd64 Packages
*** 1:2.11.0-3+deb9u1 500
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
        100 /var/lib/dpkg/status
    1:2.11.0-3 500
        500 http://ftp.fr.debian.org/debian stretch/main amd64 Packages

Lila ~ # apt-get install git=1:2.14.1-3~bpo9+1
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:
git : Depends: git-man (> 1:2.14.1) but 1:2.11.0-3+deb9u1 is to be installed
E: Unable to correct problems, you have held broken packages.

사람이 읽을 수 있는 형식: 이것이 작동하려면 git >= 2.13을 설치해야 합니다. 저는 현재 Debian stable을 사용하고 있습니다(이것이 바뀔 것 같은 느낌이 듭니다). 백포트에서 테스트 버전을 설치하려고 합니다.

답변1

자동 답변: 나는 마침내 apt-get에게 Stretch-backports에서 이 버전을 설치하라고 지시해야 한다는 것을 알아냈습니다.

apt-get install -t stretch-backports git

=> 일했다

관련 정보