
Olá, sou meio novo no Ubuntu. Dito isto, normalmente posso executar isso em uma instalação limpa do Ubuntu 14.10
sudo apt-get update
sudo apt-get install git
E então o git deve ser instalado
Mas o que eu entendo é isso
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
não instala as dependências automaticamente e o git
comando apenas retorna git is currently not installed
. Correr sudo apt-get -f install
não muda nada
O que estou fazendo de errado aqui? (Nota: não quero o mariadb instalado)
EDITAR: Depois de corrersudo 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).
Responder1
Este erro está ocorrendo porque sua árvore de dependências do apt-get atingiu um estado inconstante, devido à instalação docliente mariadbpacote que é de versão mais recente/antiga do que o esperado porservidor mariadb.
Tente desinstalar o mariadb-client por
$ sudo apt-get purge mariadb-client-5.5
Em seguida, tente corrigir sua árvore de dependências
$ sudo apt-get -f install
E então tente instalar o git.