isntall/remove 後の MariaDB 依存関係の問題

isntall/remove 後の MariaDB 依存関係の問題

MySQLを完全に削除し、MySQL 5.5からMariaDBに「アップグレード」を試みました。次に、次のようにMariaDB 10.1をインストールしました。

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
sudo add-apt-repository 'deb [arch=amd64,i386] http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/debian jessie main'
sudo apt-get update
sudo apt-get install mariadb-server
service apache2 restart

ただし、phpMyAdminはロードされず、404を返します。私が使用しているアプリケーションがうまくロードされ、コマンドラインを介してデータベースに接続できます。mysql -Vmariadbのバージョンを返します。

だから私は次のようにphpMyAdminとMariaDBを削除しました。

service mysql stop
apt-get --purge remove "mysql*"
mv /etc/mysql/ /tmp/mysql_configs/
apt-get remove --purge mysql*
apt-get autoremove
apt-get autoclean
apt-get purge phpmyadmin
apt-get autoremove phpmyadmin
service apache2 restart
apt-get update

ソースファイルからmariadbエントリを消去します。/etc/apt/sources.list

これで何か試みるたびにapt-get installエラーが返されます。

apt-get install mysql-server mysql-client

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-server-10.0 : Depends: mariadb-client-10.0 (>= 10.0.22-0+deb8u1) but it is not going to be installed
                       Depends: mariadb-server-core-10.0 (>= 10.0.22-0+deb8u1) but it is not going to be installed
                       PreDepends: mariadb-common but it is not going to be installed
                       Breaks: mysql-server
 mysql-client : Depends: mysql-client-5.5
 mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

このエラーは、インストールするすべての項目に適用されます。私は試しましたapt-get -f install。私が台無しにした部分と解決策のアイデアはありますか?

メモ:

lsb_release -da
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.2 (jessie)
Release:        8.2
Codename:       jessie

apache2 -v
Server version: Apache/2.4.10 (Debian)
Server built:   Aug 28 2015 16:28:08

ベストアンサー1

おすすめ記事