Lubos Rendek

The only solution is determination.

/var/cache/debconf/config.dat Is Locked by Another Process: Resource Temporarily Unavailable

| Comments

Cause

dpkg management tools hanged or is still running and did not return lock after its completion.

Symptoms

Unable to use apt-get nor dpkg.:

1
2
3
4
5
6
7
8
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up nvidia-installer-cleanup (20120630+3) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing nvidia-installer-cleanup (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 nvidia-installer-cleanup
E: Sub-process /usr/bin/dpkg returned an error code (1)

Solution

If not other resource to fix this problem is available kill the associated process holding a lock on that file. First find PID number of the process using /var/cache/debconf/config.dat:

1
2
3
4
# fuser -v /var/cache/debconf/config.dat
                     USER        PID ACCESS COMMAND
/var/cache/debconf/config.dat:
                     root       4218 F.... frontend

Take a note of the PID number which in this case is 4218 and kill the process:

1
# kill  4218

If the graceful kill did not work and the process is still running do:

1
# kill -9 4218

Comments