Erro ao instalar o MySQL Workbench

Erro ao instalar o MySQL Workbench

Não consigo instalar o MySQL Workbench. Ele informa o seguinte erro:

 The following packages have unmet dependencies:

mysql-workbench: Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.3-0ubuntu4 is to be installed
                 Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but 1:2.24.4-1ubuntu1 is to be installed
                 Depends: libpcrecpp0 (>= 7.7) but 1:8.31-2ubuntu2.1 is to be installed
                 Depends: python:any (>= 2.7.1-0ubuntu2) but it is a virtual package
                 Depends: mysql-workbench-data (= 6.0.8+dfsg-2) but 6.0.8+dfsg-2 is to be nstalled

Captura de tela

Como posso consertar isso? Estou rodando no Ubuntu 14.04 LTS

Responder1

Você precisará instalar todas as dependências antes de instalar o MySQL Workbench.

Experimente este comando: sudo apt-get install libgcc1 libgtkmm-2.4-1c2a libpcrecpp0 python mysql-workbench-data

Responder2

Aqui está minha solução:

sudo apt-get update
sudo apt-get install mysql-client-5.5
sudo apt-get install mysql-client
sudo apt-get install mysql-workbench

Eu tive o mesmo problema e fiz funcionar. Eu tive que fazer isso através da linha de comando. Acho que o que me causou esse problema foi que eu fiz o apt-get install mysql-client-5.6 antes de instalar qualquer outro material do mysql.

Primeiro sudo apt-get update tentei apt-get install mysql-workbench, mas recebi este erro que me indicou o próximo passo.

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:
 mysql-workbench : Depends: mysql-client
E: Unable to correct problems, you have held broken packages.

Então eu fiz sudo apt-get install mysql-client, mas deu um erro semelhante, mas me disse que eu precisava do mysql-client-5.5. Então eu fiz sudo apt-get install mysql-client-5.5e funcionou. Então instalei o mysql-client e funcionou. Então instalei o mysql-workbench e funcionou!

PS Adereços para Sanchit. A primeira coisa que fiz foi seguir a resposta de Sanchit: sudo apt-get install libgcc1 libgtkmm-2.4-1c2a libpcrecpp0 python mysql-workbench-dataMas tentei instalar novamente através do Ubuntu Software Center e recebi o mesmo erro. Mas agora não sei se esse foi um passo necessário ou não. Nesse ponto tentei pela linha de comando, pensando que era apenas uma questão de instalar os pacotes certos para atender às dependências.

Responder3

Eu tive o mesmo erro, sudo apt-get updatedepois de adicionar o APT e o workbench instalados, mas não consegui funcionar. Executei este comando:

sudo apt-get -f installe reinstalado com

sudo apt-get install mysql-workbench-community

e funcionou.

informação relacionada