
Hola, soy un poco nuevo en Ubuntu. Dicho esto, normalmente puedo ejecutar esto en una instalación limpia de ubunty 14.10.
sudo apt-get update
sudo apt-get install git
Y luego se debe instalar git
Pero lo que entiendo es esto
me@server1:~$ sudo apt-get install git
[sudo] password for me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not going to be installed
Depends: git-man (> 1:2.4.5) but it is not going to be installed
Depends: git-man (< 1:2.4.5-.) but it is not going to be installed
mariadb-client-5.5 : Breaks: mariadb-server-5.5 (< 5.5.44-1ubuntu0.14.10.1) but 5.5.39-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
me@server1:~$ git
The program 'git' is currently not installed. You can install it by typing:
sudo apt-get install git
me@server1:~$
parece que apt-get
no instala las dependencias automáticamente y el git
comando simplemente regresa git is currently not installed
. Correr sudo apt-get -f install
no cambia nada
¿Qué estoy haciendo mal aquí? (Nota: no quiero instalar mariadb)
EDITAR: Después de ejecutarsudo apt-get purge mariadb-client-5.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-5.5 (>= 5.5.39-2) but it is not going to be installed
mariadb-server-5.5 : Depends: mariadb-client-5.5 (>= 5.5.39-2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Respuesta1
Este error se debe a que su árbol de dependencias de apt-get ha alcanzado un estado inconstante debido a la instalación decliente-mariadbpaquete que es de una versión más nueva/anterior a la esperada porservidor-mariadb.
Intente desinstalar mariadb-client
$ sudo apt-get purge mariadb-client-5.5
Luego intente corregir su árbol de dependencia
$ sudo apt-get -f install
Y luego intenta instalar git.