Невозможно установить MySQL. Неисправные пакеты [дубликат]

На этот вопрос уже есть ответ здесь:

Я попытался установить MySQL с помощью

sudo apt-get install mysql-server и получил сообщение об ошибке

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.

Когда я набираю sudo apt-get install mysql-server-5.1 , там написано:

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."

И когда я набираю mysql, он говорит:

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

Я пробовал sudo apt-get remove --purge mysql-client-5.1 , но он говорит that

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

Что мне делать?

0
задан 1 March 2014 в 18:05

1 ответ

И когда я ввожу "mysql", он говорит, "ОШИБКА 2002 (HY000): не Может соединиться с локальным сервером MySQL через сокет '/var/run/mysqld/mysqld.sock' (2)",

можно войти в систему к mysql базе данных до

mysql -u root -p

а не mysql

, В то время как установка, идущая Вас, mus запрашивается пароль и необходимо дать тот пароль здесь для входа в систему.

и устранить проблему DEP, Вы могли бы попробовать

sudo apt-get install -f
0
ответ дан 1 March 2014 в 18:05

Другие вопросы по тегам:

Похожие вопросы: