A instalação do Mysql-server-5.1 deu errado

0

Eu estava instalando o mysql-server-5.1 no ubuntu e a instalação foi interrompida. Isso causou um erro e agora não consigo remover o pacote nem reinstalá-lo.

Esta é a saída do console:

amatteo@ubuntu:~$ sudo apt-get install mysql-server-5.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-server-5.1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
7 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
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up mysql-server-5.1 (5.1.49-1ubuntu8.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing mysql-server-5.1 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up man-db (2.5.9-4) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up wamerican (6-3) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing wamerican (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up wbritish (6-3) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing wbritish (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of language-support-writing-en:
 language-support-writing-en depends on wamerican; however:
  Package wamerican is not configured yet.
 language-support-writing-en depends on wbritish; however:
  Package wbritish is not configured yet.
dpkg: error processing language-support-writing-en (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Setting up wspanish (1.0.25) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing wspanish (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of language-support-writing-es:
 language-support-writing-es depends on wspanish; however:
  Package wspanish is not configured yet.
dpkg: error processing language-support-writing-es (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 mysql-server-5.1
 man-db
 wamerican
 wbritish
 language-support-writing-en
 wspanish
 language-support-writing-es
E: Sub-process /usr/bin/dpkg returned an error code (1)

No começo era apenas mysql-server-5.1, mas agora ele mostra erros em todos os pacotes que eu instalei desde então.

Alguma idéia?

Obrigado em avançado.

    
por Adrian Matteo 08.02.2012 / 18:22

1 resposta

2

Você precisará encontrar e matar o processo que está bloqueando /var/cache/debconf/config.dat antes de fazer qualquer outra coisa.

Você pode usar

lsof /var/cache/debconf/config.dat

ou

fuser -v /var/cache/debconf/config.dat

para descobrir qual processo está bloqueando esse arquivo e kill para matar esse processo.

Uma vez que você faz isso, você deve poder usar o apt-get para instalar o mysql-server, embora eu use o Synaptic para ver o status atual dos pacotes, no filtro se chama "Broken".

    
por Richard Holloway 08.02.2012 / 18:33