- Plesk for Linux
Unable to update Plesk with the following error :
CONFIG_TEXT: debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process.
There are the following records in
CONFIG_TEXT: debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/mailman_1%3a2.1.20-1ubuntu0.3_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
the following process is locking the update:
The file locked by another process prevents the updates.
Connect to the server via SSH;
Find the process that locks the file from the error message:
# lsof /var/cache/debconf/config.dat
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
frontend 44515 root 4uW REG 252,0 60012 55592027 /var/cache/debconf/config.dat
- Check the process via the following command:
# ps auxf | grep 44515
root 44515 0.0 0.0 60700 2196 pts/0 S+ Feb18 0:00 | _ /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/postfix.postinst configure 3.1.0-3ubuntu0.2
- Kill the process.
# kill -9 44515
- Install updates.