package mysql-server-5.1 5.1.41-3ubuntu12 failed to install/upgrade: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Reinstall goes so far then freezes.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Upon upgrading from Ubuntu 9.10 to 10.04 I was unable to run MySQL Administrator or MySQL Query Browser:
MySQL Error Nr. 2002
Can't connect to local MySQL server through socket '/var/run/
pinging localhost succeeds.
I attempted to reinstall mysql-server-5.1 5.1.41-3ubuntu12 it gets to: Selecting previously deselected package mysql-server-5.1.
(Reading database ... 168691 files and directories currently installed.)
Preparing to replace mysql-server-5.1 5.1.41-3ubuntu12 (using .../mysql-
and then stops.
I did attempt to uninstall it and got:
dpkg: error processing mysql-server-5.1 (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
mysql-server-5.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'd like to get this repaired and then rescue my database but am at a loss as to how to proceed.
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: mysql-server-5.1 5.1.41-3ubuntu12
ProcVersionSign
Uname: Linux 2.6.32-21-generic i686
AptOrdering:
mysql-server: Remove
mysql-server-5.1: Remove
Architecture: i386
Date: Mon May 3 11:38:18 2010
ErrorMessage: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal.
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Logs.var.
Logs.var.
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 5.1.41-3ubuntu12 failed to install/upgrade: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal.
Changed in mysql-dfsg-5.1 (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Thank you for opening thig bug and helping make Ubuntu better. Unfortunately, the dpkg terminal log attached only shows the attempt to uninstall. Can you please try reinstalling it as suggested in the error message?