
Hallo, ich bin ziemlich neu bei Ubuntu. Allerdings kann ich dies normalerweise auf einer Neuinstallation von Ubuntu 14.10 ausführen
sudo apt-get update
sudo apt-get install git
Und dann sollte git installiert werden
Aber was ich bekomme ist dies
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:~$
es sieht so aus, als ob apt-get
die Abhängigkeiten nicht automatisch installiert werden und der git
Befehl nur zurückgibt git is currently not installed
. Das Ausführen sudo apt-get -f install
ändert nichts
Was mache ich hier falsch? (Hinweis: Ich möchte MariaDB nicht installieren)
EDIT: Nach dem Ausführensudo 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).
Antwort1
Dieser Fehler tritt auf, weil Ihr apt-get-Abhängigkeitsbaum aufgrund der Installation vonMariaDB-ClientPaket, das eine neuere/ältere Version hat als erwartet vonMariaDB-Server.
Versuchen Sie, MariaDB-Client zu deinstallieren, indem Sie
$ sudo apt-get purge mariadb-client-5.5
Versuchen Sie dann, Ihren Abhängigkeitsbaum zu korrigieren, indem Sie
$ sudo apt-get -f install
Und versuchen Sie dann, Git zu installieren.