debconf: DbDriver “config”: /var/cache/debconf/config.dat está bloqueado por outro processo

9

Eu executei o apt-get upgrade no meu sistema debian / testing e agora recebo o erro acima. Como posso consertar isso? transcrição do shell a seguir:

136 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
1 not fully installed or removed.
Need to get 182kB/143MB of archives.
After this operation, 3671kB disk space will be freed.
Do you want to continue [Y/n]? 
Get:1 http://ftp.us.debian.org testing/main libtiff4 3.9.4-3 [182kB]
Fetched 182kB in 0s (318kB/s) 
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
Setting up sysv-rc (2.88dsf-12) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
dpkg: error processing sysv-rc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 sysv-rc
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

E: Sub-process /usr/bin/dpkg returned an error code (1)
Terrence Brannon
fonte

Respostas:

10

Você pode ver qual processo está bloqueando o arquivo:

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

Dependendo do programa, você pode tentar finalizá-lo com algo parecido kill -15.

No Debian você pode encontrar fuserno pacote psmisc. Instale este pacote se você receber um erro 'fusor: comando não encontrado'.

schot
fonte
2
funciona perfeitamente embora eu tive que usar isso comsudo
TheVillageIdiot