Я пытаюсь установить MariaDB Обь мой ноутбук с Ubuntu 14.10. Каждый раз я получаю ошибки. Так, проблема состоит в том, что версия 10.0.16 но 5.x.x MariaDB needts libmysqlclient18 установлена. Если я установлю 10.0.16, я получу новую ошибку, что для другого приложения нужна libmysqlclient18 предыдущая версия. Я попытался сделать шаги, который находится на странице инструкции по установке MariaDB, но она не помогла. Или возможно я сделал что-то не так.
ant@ubuntupc:~$ sudo apt-get install mariadb-server
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:
libmariadbclient18 : Depends: libmysqlclient18 (= 10.0.16+maria-1~utopic) but 5.5.41-0ubuntu0.14.10.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ant@ubuntupc:~$ sudo apt-get install libmysqlclient18=10.0.16+maria-1~utopic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
aptitude-common aptitude-doc-en cabextract intltool libaio1 libcwidget3
libdbd-mysql-perl libdbi-perl libunique-3.0-0 libxml-parser-perl
linux-headers-3.16.0-23 linux-headers-3.16.0-23-generic
linux-image-3.16.0-23-generic linux-image-extra-3.16.0-23-generic
mariadb-client-10.0 mariadb-client-core-10.0 mariadb-server-10.0
mariadb-server-core-10.0
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
libmysqlclient18
1 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2 948 B of archives.
After this operation, 3 478 kB disk space will be freed.
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient18_10.0.16+maria-1~utopic_amd64.deb (--unpack):
libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances
Errors were encountered while processing:
/var/cache/apt/archives/libmysqlclient18_10.0.16+maria-1~utopic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ant@ubuntupc:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
aptitude-common aptitude-doc-en cabextract intltool libaio1 libcwidget3
libdbd-mysql-perl libdbi-perl libunique-3.0-0 libxml-parser-perl
linux-headers-3.16.0-23 linux-headers-3.16.0-23-generic
linux-image-3.16.0-23-generic linux-image-extra-3.16.0-23-generic
mariadb-client-10.0 mariadb-client-core-10.0 mariadb-server-10.0
mariadb-server-core-10.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libmysqlclient18
The following packages will be upgraded:
libmysqlclient18
1 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2 948 B of archives.
After this operation, 3 478 kB disk space will be freed.
Do you want to continue? [Д/н] y
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient18_10.0.16+maria-1~utopic_amd64.deb (--unpack):
libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances
Errors were encountered while processing:
/var/cache/apt/archives/libmysqlclient18_10.0.16+maria-1~utopic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ant@ubuntupc:~$
Кажется, что я нашел решение. Я зафиксировал его как типичный пользователь Windows:-), Просто удалил весь mysql и mariadb пакеты и установленный mariadb тогда.
Кажется, что у Вас есть артефакты из mysql-клиентской библиотеки, пользовавшейся другим приложением. Я предлагаю сделать
sudo aptitude search libmysql | grep '^i'
, Это отобразит установленные версии libmysql, который Вы могли попытаться удалить один за другим со способным. Может быть возможно, что одно из Ваших установленных приложений могло бы зависеть от упомянутой версии и сильно удалить себя в процессе.
Во-первых, полностью избавьтесь от двух противоречивых клиентов:
sudo apt-get –purge remove libmariadbclient1
sudo apt-get –purge remove libmysqlclient18
и затем пробуют mariadb, устанавливают снова. Это должно работать теперь.
sudo apt-get update
sudo apt-get install mariadb-server-10.1
Наконец,
sudo apt-get upgrade
, чтобы видеть, что все назад в порядке.
взятый от http://mikelfox.com/mysql/problems-installing-mariadb-5-5-10-1-on-ubuntu-12-13-14-04-etc/