cryptsetup and initramfs fail to upgrade in Jammy
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| cryptsetup (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
debconf: DbDriver "config": /var/cache/
(Reading database ... 381069 files and directories currently installed.)
Preparing to unpack .../cryptsetup-
debconf: DbDriver "config": /var/cache/
dpkg: warning: old cryptsetup-
dpkg: trying script from the new package instead ...
debconf: DbDriver "config": /var/cache/
dpkg: error processing archive /var/cache/
new cryptsetup-
debconf: DbDriver "config": /var/cache/
dpkg: error while cleaning up:
installed cryptsetup-
Preparing to unpack .../cryptsetup_
debconf: DbDriver "config": /var/cache/
dpkg: warning: old cryptsetup package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
debconf: DbDriver "config": /var/cache/
dpkg: error processing archive /var/cache/
new cryptsetup package pre-removal script subprocess returned error exit status 1
debconf: DbDriver "config": /var/cache/
dpkg: error while cleaning up:
installed cryptsetup package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)

debconf: DbDriver "config": /var/cache/ debconf/ config. dat is locked by another process: Resource temporarily unavailable
So what has the database locked? This database is part of the packaging system. It is not allowed to run two instances of apt or dpkg in parallel, so something outside of the package manager has a debconf session open that is breaking your upgrade.