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

  • Applies to:
  • Operations Automation 5.4
  • Panels
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


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

ac82ce33439a9c1feec4ff4f2f638899 caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae 2554725ed606193dd9bbce21365bed4e a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 0dd5b9380c7d4884d77587f3eb0fa8ef 614fd0b754f34d5efe9627f2057b8642 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF