Попытка очистить MySQL не удается

В настоящее время я запущен в кругах, пытаясь исправить некоторую проблему mysql.

Я не мог использовать apt-get какое-то время, потому что он всегда застрял в строке Setting up mysql-server-5.6 (5.6.27-0ubuntu0.15.04.1) ... и didn «Позвольте мне что-нибудь сделать. Поэтому я попытался переустановить mysql, очистив его. Хотя мне удалось удалить mysql-server и mysql-client в конце концов, я все еще не могу очистить mysql-common. Очевидно, что мне удалось что-то испортить, но как я могу вернуть свою систему в данный момент?

...:~# apt-get purge mysql-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  mysql-common*
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 423600 files and directories currently installed.)
Removing mysql-common (5.6.27-0ubuntu0.15.04.1) ...
Purging configuration files for mysql-common (5.6.27-0ubuntu0.15.04.1) ...
update-alternatives: error: /var/lib/dpkg/alternatives/my.cnf corrupt: invalid status
dpkg: error processing package mysql-common (--purge):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 mysql-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

-

...# sudo dpkg -P --force-all mysql-common
(Reading database ... 424733 files and directories currently installed.)
Removing mysql-common (5.6.27-0ubuntu0.15.04.1) ...
Purging configuration files for mysql-common (5.6.27-0ubuntu0.15.04.1) ...
update-alternatives: error: no alternatives for my.cnf
dpkg: error processing package mysql-common (--purge):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 mysql-common

-

...:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:    15.04
Codename:   vivid

Моя цель - просто вернуть его и запустить снова (mysql).

1
задан 31 December 2015 в 16:31

0 ответов

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

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