“sudo apt-get purge mysql” Falha no Ubuntu 16.04 LTS

1

Não sei qual é o problema, mas tenho certeza de que algo está seriamente errado em minha instalação do MySQL. Eu tentei praticamente todas as soluções nos links a seguir: Como reparar a instalação do pacote corrompido (mysql) , Como excluir completamente o MySQL para instalação limpa , Como desinstalo completamente o MySQL? . Mas infelizmente, nada funcionou. Quando cada uma dessas soluções foi tentada, um erro comum foi gerado, que é o seguinte:

The following packages have unmet dependencies:
 libmysqlclient20 : Depends: mysql-common (>= 5.7.20-1ubuntu16.04)
                    Breaks: libmysqlclient20:i386 (!= 5.7.20-1ubuntu16.04) but 5.7.20-0ubuntu0.16.04.1 is to be installed
 libmysqlclient20:i386 : Depends: mysql-common:i386 (>= 5.5)
                         Breaks: libmysqlclient20 (!= 5.7.20-0ubuntu0.16.04.1) but 5.7.20-1ubuntu16.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

A mensagem de erro e o comando estão aqui:

sudo apt-get --yes purge mysql-apt-config mysql-common mysql-
community-server mysql-workbench-community mysql-client mysql-community-client mysql-server mythes-en-us 
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:
 libmysqlclient20 : Depends: mysql-common (>= 5.7.20-1ubuntu16.04)
                    Breaks: libmysqlclient20:i386 (!= 5.7.20-1ubuntu16.04) but 5.7.20-0ubuntu0.16.04.1 is to be installed
 libmysqlclient20:i386 : Depends: mysql-common:i386 (>= 5.5)
                         Breaks: libmysqlclient20 (!= 5.7.20-0ubuntu0.16.04.1) but 5.7.20-1ubuntu16.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Esse erro é particularmente trabalhoso porque o dpkg está agindo por causa disso, assim como o apt-get. Eu estou completamente disposto a me livrar do MySQL se isso significar que eu consiga corrigir este erro.

Alguém tem conselhos sobre como corrigir isso?

    
por schro's cat 15.11.2017 / 22:25

1 resposta

3

Eu tive o mesmo problema que você. Para mim a solução foi remover o pacote usando o dpkg:

sudo dpkg --remove --force-all libmysqlclient20:i386
sudo dpkg --remove --force-all libqt4-sql-mysql

Espero que ajude você ...

    
por Kapucko 16.11.2017 / 23:23