Ubuntu 12.04에서 MySQL5.5를 시작할 수 없습니다. - "dpkg: 종속성 문제"

Ubuntu 12.04에서 MySQL5.5를 시작할 수 없습니다. - "dpkg: 종속성 문제"

이는 12.04의 일반적인 문제인 것 같습니다. 나는 모든 것을 시도했습니다이 스레드포함:

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 is broken or not fully installed

여기서 궁극적인 목표는 Redmine과 함께 작동하도록 Gitorious를 설치하고 구성하는 것이지만 문제는 Ubuntu 12.04 및 MySql5.5에만 국한된 것이라고 생각합니다.

답변1

내 경우에는 andrewcaveman의 솔루션이 효과가 있었습니다.

나는 같은 문제가있었습니다. apt-get clean, autoclean, 제거 및 apt-get install mysql-server-5.5를 시도했습니다. 동일한 오류가 계속 발생합니다.

두 번째로 모든 것을 제거하고 다시 시도했지만 여전히 동일한 문제가 발생했습니다.

업그레이드가 아닌 설치를 수행하고 있었기 때문에 기존 데이터베이스에 신경 쓰지 않았지만 이것이 저에게 효과적이었습니다.

모든 mysql 애플리케이션을 다시 제거한 다음 /var/lib/mysql 디렉토리를 삭제했습니다. 기존 데이터베이스가 있으면 해당 데이터베이스가 손실된다는 점을 명심하세요. 다른 위치로 옮기고 싶을 수도 있습니다.

해당 디렉토리를 제거한 후 다시 설치했는데 완벽하게 작동했습니다. 그래서 /var/lib/mysql 디렉토리에 있는 뭔가가 내 문제였습니다. 그것이 당신에게 효과가 있는지 확인하십시오.

원천:http://ubuntuforums.org/showpost.php?p=12362816&postcount=2

관련 정보