Falha ao instalar MariaDB no Ubuntu 14.10

0

Estou tentando instalar o MariaDB ob my laptop com o Ubuntu 14.10. Toda vez que estou recebendo erros. Portanto, o problema é que o MariaDB precisa do libmysqlclient18 versão 10.0.16, mas o 5.x.x está instalado. Se eu instalar 10.0.16, recebo um novo erro que outro aplicativo precisa da versão anterior do libmysqlclient18. Eu tentei seguir os passos que estão na página de guia de instalação do MariaDB , mas isso não ajudou. Ou talvez eu tenha feito algo errado.

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:~$ 
    
por kozlone 21.02.2015 / 14:19

3 respostas

1

Parece que encontrei uma solução. Eu consertei como um típico usuário do Windows :-) Acabei de remover todos os pacotes mysql e mariadb e instalei o mariadb então.

    
por kozlone 23.02.2015 / 17:35
1

Parece que você tem artefatos da biblioteca mysql-client usada por outro aplicativo. Sugiro fazer

sudo aptitude search libmysql | grep '^i'

Isto irá mostrar as versões instaladas do libmysql que você pode tentar remover uma por uma com o apt. Pode ser possível que um dos seus aplicativos instalados seja dependente da versão mencionada e seja removido com força no processo.

    
por user283885 21.02.2015 / 14:24
0

Primeiro, elimine completamente os dois clientes em conflito:

sudo apt-get –purge remove libmariadbclient1
sudo apt-get –purge remove libmysqlclient18

e tente a instalação do mariadb novamente. Deve funcionar agora.

sudo apt-get update
sudo apt-get install mariadb-server-10.1

Finalmente,

sudo apt-get upgrade

para ver se tudo está de volta em ordem.

tirado de link

    
por Slayer6 15.11.2015 / 22:28