This is a bug in apt, but it has to be worked around in some packages.
The commandline to find these logs is:
COMMAND='grep -E "E: Could not perform immediate configuration on"'
Affected packages in oldstable222sid: 1