Sudo apt-get install git の問題

Sudo apt-get install git の問題

こんにちは、私はUbuntu初心者です。とはいえ、Ubuntu 14.10のクリーンインストールでは通常これを実行できます。

sudo apt-get update
sudo apt-get install git

そしてgitをインストールする必要があります

しかし、私が得たのはこれです

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:~$ 

apt-get依存関係を自動的にインストールしないようで、gitコマンドは単に返しますgit is currently not installed。実行してもsudo apt-get -f install何も変わりません。

ここで何が間違っているのでしょうか? (注: mariadb をインストールしたくありません)

編集: 実行後sudo 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).

答え1

このエラーは、apt-getの依存関係ツリーが、以下のインストールにより不安定な状態になったために発生します。mariadb クライアント予想よりも新しい/古いバージョンのパッケージmariadb サーバー

mariadb-clientをアンインストールしてみてください

$ sudo apt-get purge mariadb-client-5.5

次に依存関係ツリーを修正します。

 $ sudo apt-get -f install

そして、git をインストールしてみてください。

関連情報