package mysql-server-5.6 5.6.23-1~exp1~ubuntu5 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | mysql-5.6 (Ubuntu) |
Undecided
|
Oleg Strikov | ||
Bug Description
The service not automatic start and try to remove
/usr/bin/
try to reinstall:
dpkg: error processing package mysql-server-5.6 (--configure):
package mysql-server-5.6 is not ready for configuration
cannot configure (current status `half-installed')
Errors were encountered while processing:
mysql-server-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: mysql-server-5.6 5.6.23-
ProcVersionSign
Uname: Linux 3.19.0-10-generic x86_64
NonfreeKernelMo
ApportVersion: 2.17-0ubuntu1
AptOrdering:
mysql-server-5.6: Purge
NULL: �<��
Architecture: amd64
Date: Tue Mar 31 11:39:44 2015
DpkgTerminalLog:
Removing mysql-server-5.6 (5.6.23-
update-
/usr/bin/
dpkg: error processing package mysql-server-5.6 (--purge):
subprocess installed post-removal script returned error exit status 1
DuplicateSignature: package:
ErrorMessage: subprocess installed post-removal script returned error exit status 1
InstallationDate: Installed on 2015-03-05 (25 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150305)
RelatedPackageV
dpkg 1.17.24ubuntu1
apt 1.0.9.7ubuntu3
SourcePackage: mysql-5.6
Title: package mysql-server-5.6 5.6.23-
UpgradeStatus: No upgrade log present (probably fresh install)
| Argenis Bolivar (abolivar) wrote : | #1 |
| tags: | removed: need-duplicate-check |
| Oleg Strikov (strikov) wrote : | #2 |
| Changed in mysql-5.6 (Ubuntu): | |
| assignee: | nobody → Oleg Strikov (strikov) |
| Oleg Strikov (strikov) wrote : | #3 |
Hi Argenis,
Today I tried to upgrade from 5.6.23-
Here is what I found:
Upgrade from ~ubuntu4 to ~ubuntu5 runs smoothly.
Mysql service starts after upgrade and automatically starts after reboot.
I can't reproduce the fact that service doesn't start automatically.
I assume that you observed the issue with autostart while using previous version of the package (~ubuntu4) i.e. one you used before the upgrade.
Could you please confirm that?
If so -- you met this bug: https:/
It was fixed in the latest version of the package.
I was able to reproduce the issue with upgrading the package (second part of the bug):
Removing mysql-server-5.6 (5.6.23-
/usr/bin/
Please note that this issue is not related to the latest package (~ubuntu5) itself.
It happens because the previous version (~ubuntu4) created incorrect symlink at /etc/systemd/
Latest version of the package won't create this symlink but you need to manually remove the link created by the previous version of the package. Once you do it -- you won't observe this issue in future.
To fix this issue run the following command when apt-get remove/purge crashes:
$ sudo rm /etc/systemd/
Now, re-run remove/purge. It should finish correctly this time.
After carrying out this procedure you can reinstall mysql back. You won't observe the issue again.
You may use this bug as a reference: https:/
Please try to apply this workaround and let us know if it helps you or not.
Thanks for reporting the bug!
| Oleg Strikov (strikov) wrote : | #4 |
'I was able to reproduce the issue with upgrading the package (second part of the bug):'
should be
'I was able to reproduce the issue with REMOVING the package (second part of the bug):'
| Oleg Strikov (strikov) wrote : | #5 |
I plan to change the status of this bug to Won't Fix and here is the explanation for this decision. We can theoretically fix this issue in mysql package. In the postrm handler we need to check if this problematic symlink exists and remove it before passing control to deb-systemd-helper. I don't think this is reasonable decision though. If we put this code into the package we'd be required to leave it there forever (users may upgrade from buggy ubuntu4 to ubuntu5-6-7-8 and then make decision to remove the package). Keeping it there forever is bad because we're doing systemd's and deb-systemd-
| Robie Basak (racb) wrote : | #6 |
Marking Won't Fix on Oleg's request. I note that a workaround is available, and this issue only affects users who tracked Vivid during development - after release, nobody upgrading from Utopic will be affected.
| Changed in mysql-5.6 (Ubuntu): | |
| status: | New → Won't Fix |


Hi Argenis,
Thanks for reporting the bug.
I was not able to reproduce the bug on a fresh installation of 15.04. system/ mysql.service
It looks like this issue happens when you upgrade the package from ubuntu4 to ubuntu5.
I think that the following workaround may resolve the issue:
$ sudo rm /etc/systemd/
After running this command you (theoretically) should be able to purge and install the package w/o any issue.
Please let us now if it helps you or not.