![Não é possível iniciar o MySQL5.5 no Ubuntu 12.04 - “dpkg: problemas de dependência”](https://rvso.com/image/1337815/N%C3%A3o%20%C3%A9%20poss%C3%ADvel%20iniciar%20o%20MySQL5.5%20no%20Ubuntu%2012.04%20-%20%E2%80%9Cdpkg%3A%20problemas%20de%20depend%C3%AAncia%E2%80%9D.png)
Este parece ser um problema comum em 12.04. Eu tentei de tudo emeste tópicoIncluindo:
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
Ainda recebo o mesmo erro antigo. Instalar/iniciar o MySql5.5 é assim:
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
Além disso, dpkg-reconfigure mysql-server-5.5
retorna/usr/sbin/dpkg-reconfigure: mysql-server-5.5 is broken or not fully installed
O objetivo final aqui é instalar e configurar o Gitorious para funcionar com Redmine, mas acredito que o problema esteja isolado no Ubuntu 12.04 e MySql5.5
Responder1
No meu caso, a solução de Andrewcaveman funcionou.
Eu tive o mesmo problema. Tentei o apt-get clean, autoclean, remove e apt-get install mysql-server-5.5 O mesmo erro continuaria aparecendo.
Retirei tudo uma segunda vez, tentei novamente, continua o mesmo problema.
Foi isso que funcionou para mim, embora eu estivesse fazendo uma instalação e não uma atualização, então não me importei com o banco de dados existente.
Eu removi todo o aplicativo mysql novamente e excluí meu diretório /var/lib/mysql. Lembre-se de que se você tiver um banco de dados existente, você o perderá. Você pode querer movê-lo para outro local.
Depois de remover esse diretório, instalei novamente e funcionou perfeitamente. Então, algo no diretório /var/lib/mysql foi meu problema. Veja se isso funciona para você.
fonte:http://ubuntuforums.org/showpost.php?p=12362816&postcount=2