Mysql-workbenchを削除しようとしています。しかし、mysqlに関連する何かを削除しようとするたびに、このエラーが発生します。
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)
助けてください!
これは既知のバグです。
https://bugs.launchpad.net/ubuntu/+source/mysql-5.6/+bug/1455818
/var/lib/dpkg/info/mysql-server-5.6.postinst
でインストール後スクリプトを開き、95行目をコメントアウトします。
### /usr/share/mysql-common/configure-symlinks install mysql "$mysql_cfgdir/mysql.cnf"
インストールを再試行してください。