Dependências não satisfeitas ao tentar instalar o Git de

0

Eu sei que esse tipo de pergunta é frequentemente feita, e eu leio muitos tópicos (particularmente este ) em torno desse tipo de problemas sem encontrar uma solução" simples "(quero dizer, sem editar o arquivo DEBIAN/control do pacote).

Aqui está o problema:

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.

Em formato legível: Eu tenho que instalar o git > = 2.13 para o trabalho. Atualmente estou no Debian estável (tenho a sensação de que isso vai mudar); e estou tentando instalar a versão de teste dos backports.

    
por brunetton 21.09.2017 / 13:08

1 resposta

1

Resposta automática: Eu finalmente achei que tinha que dizer ao apt-get para instalar esta versão do stretch-backports:

apt-get install -t stretch-backports git

= > Trabalhou

    
por 21.09.2017 / 13:08