3

I'm trying to remove mysql-workbench. But every time when I try to remove something related with mysql, I get this error.

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)

Help, please!

  • I already tryied something like this, but didn't work. – Leo Ribeiro Jul 2 '15 at 16:53
3

This is a known bug:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.6/+bug/1455818

Workaround:

Open post installation script on /var/lib/dpkg/info/mysql-server-5.6.postinst and comment out line 95:

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

Retry installation.

  • After commenting out this line, I receive additional errors when attempting to reinstall. 2017-12-13T00:27:37.441194Z 0 [ERROR] You have enabled the binary log, but you haven't provided the mandatory server-id. Please refer to the proper server start-up parameters documentation – Alkarin Dec 13 '17 at 0:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.