web-dev-qa-db-fra.com

Bogue d'installation dans mysql-server-5.6 E: Le sous-processus / usr / bin / dpkg a renvoyé un code d'erreur (1)

J'essaie de supprimer mysql-workbench. Mais chaque fois que j'essaie de supprimer quelque chose lié à mysql, j'obtiens cette erreur.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
mysql-server-5.6
0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded.
1 not fully installed or removed.
After this operation, 52,5 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 309141 files and directories currently installed.)
Removing mysql-server-5.6 (5.6.24-0ubuntu2) ...
/var/lib/dpkg/info/mysql-server-5.6.postrm: line 53: /usr/share/mysql-common/configure-symlinks: No such file or directory
dpkg: error processing package mysql-server-5.6 (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)

Aidez-moi, s'il vous plaît!

3
Leo Ribeiro

C'est un bug connu:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.6/+bug/1455818

Solution de contournement:

Ouvrez le script de post-installation sur /var/lib/dpkg/info/mysql-server-5.6.postinst et commentez la ligne 95:

### /usr/share/mysql-common/configure-symlinks install mysql "$mysql_cfgdir/mysql.cnf"

Réessayez l'installation.

3
outredr