Intentando instalar Git en Ubuntu 14.04

Intentando instalar Git en Ubuntu 14.04

Estoy intentando instalar Git en Ubuntu 14.04 (Trusty Tahr)... Cuando escribí

sudo apt-get install git-all

decía:

E: Unable to locate package git

Entonces corrí:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E1DD270288B4E6030699E45FA1715D88E1DF1F24
sudo su -c "echo 'deb http://ppa.launchpad.net/git-core/ppa/ubuntu trusty main' > /etc/apt/sources.list.d/git.list"

sudo apt-get update
sudo apt-get install git

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: liberror-perl but it is not installable
       Recommends: patch but it is not installable
       Recommends: rsync but it is not installable
       Recommends: ssh-client but it is not installable
E: Unable to correct problems, you have held broken packages.

¿Cómo puedo solucionarlo y qué puedo hacer para que funcione?

Respuesta1

Como puede ver a continuación, el git-allpaquete ciertamente existe en 14.04 y nonoRequiere un PPA:

andrew@corinth:~$ apt-cache policy git-all
git-all:
  Installed: (none)
  Candidate: 1:1.9.1-1ubuntu0.3
  Version table:
     1:1.9.1-1ubuntu0.3 0
        500 http://au.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
     1:1.9.1-1 0
        500 http://au.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
andrew@corinth:~$ 

Está en la sección 'Universo' de los Repositorios de Ubuntu, así que asegúrate de tenerlo activado siguiendo el rastro:

Dash --> Software & Updates --> Ubuntu Software --> Community maintained....

Vea esta captura de pantalla donde el cursor del mouse indica el Repositorio apropiado:

ingrese la descripción de la imagen aquí

Después de activar 'Universo' y permitir que el índice del Repositorio se recargue, deshazte del PPA y luego simplemente ejecuta:

sudo apt-get install git-all

Y todo debería estar bien...

información relacionada