ubuntu-12.04 – 在Ubuntu 12.04上无法启动MySQL5.5 – “dpkg:依赖问题”

前端之家收集整理的这篇文章主要介绍了ubuntu-12.04 – 在Ubuntu 12.04上无法启动MySQL5.5 – “dpkg:依赖问题”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
这似乎是12.04上的一个常见问题。我在 this thread尝试过,包括
sudo apt-get clean

sudo apt-get autoclean

sudo apt-get remove --purge MysqL-client-5.5 MysqL-client-core-5.5 MysqL-common MysqL-server MysqL-server-5.5 MysqL-server-core-5.5

sudo apt-get install MysqL-server

我仍然得到相同的旧错误。安装/启动MysqL5.5如下所示:

apt-get install -f MysqL-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
MysqL-server is already the newest version.
0 upgraded,0 newly installed,0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation,0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up MysqL-server-5.5 (5.5.24-0ubuntu0.12.04.1) ...
120907 21:37:15 [Note] Plugin 'FEDERATED' is disabled.
120907 21:37:15 InnoDB: The InnoDB memory heap is disabled
120907 21:37:15 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120907 21:37:15 InnoDB: Compressed tables use zlib 1.2.3.4
120907 21:37:15 InnoDB: Initializing buffer pool,size = 128.0M
120907 21:37:15 InnoDB: Completed initialization of buffer pool
120907 21:37:15 InnoDB: highest supported file format is Barracuda.
120907 21:37:15  InnoDB: Waiting for the background threads to start
120907 21:37:16 InnoDB: 1.1.8 started; log sequence number 154164236
120907 21:37:16  InnoDB: Starting shutdown...
120907 21:37:16  InnoDB: Shutdown completed; log sequence number 154164236
start: Job Failed to start
invoke-rc.d: initscript MysqL,action "start" Failed.
dpkg: error processing MysqL-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of MysqL-server:
 MysqL-server depends on MysqL-server-5.5; however:
  Package MysqL-server-5.5 is not configured yet.
dpkg: error processing MysqL-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a prevIoUs failure.

Errors were encountered while processing:
 MysqL-server-5.5
 MysqL-server

另外,dpkg-reconfigure MysqL-server-5.5返回/ usr / sbin / dpkg-reconfigure:MysqL-server-5.5已损坏或未完全安装

这里的最终目标是安装和配置GitorIoUs以使用Redmine,但我相信这个问题被隔离到Ubuntu 12.04和MysqL5.5

我发现这个步骤的解决方案:

WARNING: the following step will DELETE your existing data! please backup first!!!

$ sudo apt-get --yes autoremove --purge MysqL-server-5.5

$ sudo apt-get --yes autoremove --purge MysqL-client-5.5

$ sudo apt-get --yes autoremove --purge MysqL-common

$ sudo rm -rf /var/lib/MysqL /etc/MysqL ~/.MysqL



$ sudo deluser MysqL

$ sudo apt-get autoclean

$ sudo apt-get update && sudo apt-get upgrade

$ sudo apt-get install MysqL-server-5.5 MysqL-client-5.5

NOTE: when you get ‘dpkg: error…’ please run step below:

$ sudo dpkg --configure -a

祝你好运!

猜你在找的Ubuntu相关文章