29

Ubuntu 12.04 LTS に MariaDB をインストールしようとしています。

ダウンロードを選択すると表示されるhttps://askubuntu.com/questions/64772/how-to-install-mariadbおよび MariaDB.orgの指示に従いました。

最後のステップはsudo apt-get install mariadb-server次を返します。

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:
 mariadb-server : Depends: mariadb-server-5.5 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

依存関係の問題は認識の問題 ( https://mariadb.atlassian.net/browse/MDEV-3882 ) ですが、パッケージが壊れているため、これを回避できないと思います。

libmariadbclient18 をインストールしようとすると、次のようになります。

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:
 libmariadbclient18 : Depends: libmysqlclient18 (= 5.5.30-mariadb1~precise) but 5.5.31-0ubuntu0.12.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

を使用して壊れたパッケージを修正しようとしましたsudo apt-get install -fが、mariadb-server または libmariadbclient18 をインストールできません。

4

8 に答える 8

4

言及されたバージョンが利用できないため、@Lloekiによる回答はもう機能しません。このエラーが発生します。

E: Version '5.5.30-mariadb1~precise' for 'libmysqlclient18' was not found

これを回避するには、正しいバージョンを見つける必要があります。

で利用可能なバージョンのリストを取得できますaptitude versions libmysqlclient18。私のシステムでは、これは次のようになりました。

Package libmysqlclient18:
[...]
p   5.5.31+maria-1~precise                                         <NULL>                                      1000
i   1:5.5.32-rel31.0-549.precise                                   <NULL>                                      500
[...]    

(さらにいくつかの行がありますが、関連する行のみが表示されます)。

の行iは現在インストールされているバージョンで、提案された の行はありませんでした5.5.30-mariadb1~precise。しかし、有望に見える別の候補がありました。これは、私と同じように、あなたにとって同じである必要はないことに注意してください(時間の経過とともに変化します)。

この例では、次のように続行できます。

sudo apt-get install libmysqlclient18=5.5.31+maria-1~precise

この後、インストールでクライアント mariadb-commonの両方が選択され、次の手順に進むことができます。

 sudo apt-get install mariadb-server

OPのエラーなし。

于 2013-07-10T14:25:43.860 に答える
4

@yuvilioはそれを正しく持っています:

$ sudo apt-get install libmysqlclient18=5.5.30-mariadb1~quantal mysql-common=5.5.30-mariadb1~quantal mariadb-server mariadb-client

これは 12.04 、 12.10 、および 13.04 (LinuxMint 14 でもあります) で機能します。

どうやらMariaDBは、カーネルが3.5.0-25などを過ぎて更新された場所に「敏感」であり、プレーンなバニラ「sudo apt-get install mariadb-server」を使用したMariaDBのインストールに影響を与えるようです

@yuvilio は、プラグイン「InnoDB」と「FEEDBACK」が無効になっているが、このインストール後に InnoDB が機能すると述べています。

MariaDB は XTRA-DB を InnoDB の代わりにドロップインとして使用するため、これは完全に理にかなっています。おそらくMariaDBにも新しいフィードバックモジュールがあります(彼らはMariaDBのフィードバックをOracle/mySQLではなくmariadb.orgに送ってほしいと思っています)

于 2013-05-02T17:23:31.670 に答える
2

私の場合(Ubuntu 14.04)でどのように解決したかを共有しましょう。

エラーがありました:

$ sudo apt-get install mariadb-server-5.5
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:
 mariadb-server-5.5 : Depends: mariadb-client-5.5 (>= 5.5.41+maria-1~trusty) but it is not going to be installed
                      Depends: mariadb-server-core-5.5 (>= 5.5.41+maria-1~trusty) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

解決:

ステップ1:sudo apt-get install libmysqlclient18

ステップ2:sudo apt-get install mariadb-server

ノート:

  • これらの指示に従ってインストールしていました
  • 以前に MySQL をインストールしたことがない
于 2015-01-22T07:16:58.260 に答える
2

これが誰かに役立つかどうかはわかりませんが、mariadb 10 のインストールに問題があり、エラーが発生してこのページにたどり着きましたが、何の助けにもなりませんでした。

/tmp ディレクトリが root によって所有されており、他のユーザーが書き込めないことに最終的に気付きました。その問題を修正してから、次のことを行いました。

apt-get remove mariadb-server

もう一度インストールしようとしましたが、削除に失敗したため、削除してから/var/lib/mysql 試しました:

apt-get remove mariadb-server

もう一度、実際にmariadb-serverをインストールし、起動して実行しました...

それは今動作します。

于 2014-04-02T20:48:18.160 に答える
0

すべての mysql パッケージを削除してから実行することで、mariadb をインストールできました。

    sudo apt-get install mariadb-server-5.5 mariadb-client-5.5 \
    mariadb-server-core-5.5 mariadb-common mariadb-server \
    libmariadbclient18 libdbd-mysql-perl mariadb-client-core-5.5 \
    libmysqlclient18=5.5.30-mariadb1~quantal \
    mysql-common=5.5.30-mariadb1~quantal

最初に mysql を削除する必要があったかどうかはわかりません。

于 2013-04-26T04:20:21.447 に答える