Search for:

Available article translations:

Template/package installation to Debian/Ubuntu-based container fails: "/var/cache/debconf/config.dat is locked by another process"

Article ID: 116835, created on Aug 20, 2013, last review on May 11, 2014

  • Parallels Operations Automation 5.4
  • Parallels Cloud Server
  • Parallels Virtuozzo Containers for Linux
  • Parallels Server


When installing a template or a package into a Debian/Ubuntu-based container, an error like this can occur (it can fail on any package; postfix is just one possible package):

~# vzpkg install CTID pp11 pp11-postfix
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing /vz/template/debian/6.0/x86_64/pm//archives/postfix_2.7.1-1+squeeze1_amd64.vz.deb (--unpack):
subprocess new pre-installation script returned error exit status 1

Further attempts to install anything to a container may fail with a dependency check:

~# vzpkg install CTID pp11 pp11-postfix
W: GPG error: squeeze/updates InRelease: Could not open file /vz/template/debian/6.0/x86_64/pm//lists/partial/ - RunGPGV (2: No such file or directory)
W: GPG error: squeeze Release: No keyring installed in /vz/tmp//vzpkg.3AP8B0/trusted.gpg.d/.
W: GPG error: squeeze Release: No keyring installed in /vz/tmp//vzpkg.TiPgQq/trusted.gpg.d/.
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Error: /usr/bin/apt-get failed, exitcode=100.


The cause of the failure is a file lock on the configuration file of the Debian Configuration utility.

The error itself seems to be very intermittent and it occurs rarely - presumably, if the command to install templates/packages is run right after starting the container, e.g., as it is provisioned from Parallels Operation Automation.


To fix the issue with dependencies, use the following command, as it is suggested during installation attempts and redoes the operation:

~# vzctl exec CTID apt-get -f install

The locking issue has not yet been investigated in details because it is not reproducible in the test environment and is very intermittent.

Search words:

subprocess new pre-installation script returned error exit status 1

apt-get -f install

debconf: DbDriver "config"

config.dat is locked by another process

apt-get failed, exitcode=100

32767b020da91159b5a6d6a3ddea0d2b caea8340e2d186a540518d08602aa065 64cafed7cc15bceb3b240d8c2f92dce3 c65eaff5333f2b87eda32041b8ac987f ca05eaf5b843fbd53589c90d7228a6df 2897d76d56d2010f4e3a28f864d69223 909d99074e442b52ce54cc7b31cf065d eb0ea3b827d18de2329b6477e24c1d59 bf1c3a170005eae151f49ba2720abde9 bb8d08f557ff7e4b314b6bbaa846b034

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0
- Parallels Virtuozzo Containers
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification