Trying to cache Ubuntu 10x vps template.

# vzpkg create cache "OS_EZ_template_name"

First it gets stuck at this portion:

Code:
Not creating home directory `/var/cache/bind'.
wrote key file "/etc/bind/rndc.key"
#
* Starting domain name service... bind9
So do a ctrl+c and it continues the process, then dies out with errors:

Code:
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `cifs-utils')
Setting up libpaper1 (1.1.24) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libpaper1 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `libpaper1' (required by `psutils')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba-common-bin')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `cifs-utils')
Setting up libpaper1 (1.1.24) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libpaper1 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `libpaper1' (required by `psutils')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba-common-bin')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `cifs-utils')
Setting up libpaper1 (1.1.24) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libpaper1 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `libpaper1' (required by `psutils')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba-common-bin')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `cifs-utils')
Setting up libpaper1 (1.1.24) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libpaper1 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `libpaper1' (required by `psutils')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba-common-bin')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `cifs-utils')
Setting up libpaper1 (1.1.24) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libpaper1 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `libpaper1' (required by `psutils')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba-common-bin')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `samba')
Setting up samba-common (3.5.4~dfsg-1ubuntu8.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: also configuring `samba-common' (required by `cifs-utils')
Setting up libpaper1 (1.1.24) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libpaper1 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 bind9
 samba-common
 libpaper1
 openssh-server
 portmap
 quota
 sasl2-bin
 ssl-cert
 wide-dhcpv6-client
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
 samba-common
 samba-common
 samba-common
 libpaper1
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: /usr/bin/apt-get failed, exitcode=100