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. cant stop mysql server to reinstall it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Ubuntu 10.04 LTS
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REINSTALLED:
mysql-server-5.1
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 28 not upgraded.
Need to get 0B/7,103kB of archives. After unpacking 0B will be used.
Writing extended state information... Done
Preconfiguring packages ...
(Reading database ... 140437 files and directories currently installed.)
Preparing to replace mysql-server-5.1 5.1.41-3ubuntu12 (using .../mysql-
/var/lib/
stop: Job has already been stopped: mysql
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 1
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing /var/cache/
subprocess new pre-installation script returned error exit status 1
/var/lib/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
"stop mysql" and "start mysql" just hang and dont seem to do anything. killing mysql process while attempting reinstallation makes dpkg try to start it again, so it keeps doing nothing.
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: mysql-server-5.1 5.1.41-3ubuntu12
ProcVersionSign
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Fri May 14 11:51:28 2010
ErrorMessage: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal.
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
Logs.var.
May 13 20:36:40 kgb kernel: [ 2413.726506] type=1505 audit(127376860
May 13 21:12:00 kgb kernel: [ 9.971952] type=1505 audit(127377071
May 14 11:48:45 kgb kernel: [ 10.647012] type=1505 audit(127382332
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.
Do you have a mysql root password set?
Regards
chuck