# Unable to install due to debconf problem

I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error:

root@user-desktop:/home/user# apt-get install flashybrid
Building dependency tree
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up flashybrid (0.15+nmu2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing flashybrid (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
flashybrid
E: Sub-process /usr/bin/dpkg returned an error code (1)


I also tried this one to find what is already using that file:

root@user-desktop:/home/user# lsof | grep /var/cache/debconf/config.dat
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/user/.gvfs
Output information may be incomplete.
dpkg-prec 4672 root 4rW REG 8,6 39658 1697827 /var/cache/debconf/config.dat


But I don't know how to fix this.

-

This is more simple one command

I just did

sudo rm /var/cache/debconf/*.dat


After i run the apt-get install and (i was installing curl ) and it worked restored the db manual pages

PS: i removed something with apt-get and i did have this probleme . but solved it simply thank also to @rajagenupula

-
I used sudo \rm -v /var/cache/debconf/*.dat –  Mark Stewart Jan 27 at 5:03
This worked sooo nice. Thanks! –  Ionică Bizău Mar 6 at 17:23
@lonica You're welcome :) –  ucefkh Mar 7 at 22:58

Using the command fuser -v /var/cache/debconf/config.dat I got the process ID also called PID that was locking the file. Then I killed the process, using kill PID and apt start working fine!

-

This helped me:

sudo rm /var/cache/debconf/*.dat


This also works:

/var/cache/debconf # mv templates.dat-old templates.dat
/var/cache/debconf # mv config.dat-old config.dat
...

-

A solution to this locking problem is give here https://wiki.edubuntu.org/DebuggingInstallationIssues Use fuser -v /var/cache/debconf/config.dat to determine the process holding the lock and then kill it. It worked for me

-
This worked fantastic! Thanks a bunch, I didn't know of 'fuser'! –  stolsvik Jan 1 at 22:54

There is a process still running blocking debconf. You should wait until it finish. Or find out how it got stuck, since in some cases it will be try to ask you a question but since you don't have a scope to see it. If you wait sometime and things doesn't change you may need to reboot the system, or terminate the process.

sudo kill 4672


or

sudo killall dpkg-prec


This will assure you that your database will not get damaged and will prevent further problems.

-
I think it's pointless to use process id 4672 in your first command example. Somebody might use that command as-is, but it won't work as he would very likely have a different process id. –  user205301 Nov 6 '13 at 16:56
@user205301 that's what the second is for ;) –  Braiam Nov 6 '13 at 17:09
2. open the location /var/cache/debconf with gksu nautilus