Não é possível instalar o MySQL. Mantive pacotes quebrados [duplicados]

0

Eu tentei instalar o MySQL usando

sudo apt-get install mysql-server , e recebo um erro dizendo

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-server : Depends: mysql-server-5.1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Quando digito sudo apt-get install mysql-server-5.1 , diz:

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-server-5.1 : Depends: mysql-client-5.1 (>= 5.1.69-0ubuntu0.11.10.1) but it is not going to be installed
                    Depends: libdbi-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages."

E quando digito mysql, , diz

 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Eu tentei sudo apt-get remove --purge mysql-client-5.1 , mas diz que

mysql-client is not installed so it can't be uninstalled.

O que devo fazer?

    
por Chandan 01.03.2014 / 14:38

1 resposta

0

% bl0ck_qu0te%

Você pode acessar o banco de dados mysql através de

mysql -u root -p

e não mysql

Durante a instalação, você receberá uma senha e precisará fornecer a senha aqui para efetuar o login.

e para corrigir o problema de dep, você pode tentar com

sudo apt-get install -f
    
por rɑːdʒɑ 01.03.2014 / 15:01