Originally created by @intrigeri on #15382 (Redmine)
The APT package installation currently does not complete until the hook
has returned. I suspect that’s not on purpose and one should add exec
to the command line in DPkg::Pre-Install-Pkgs and DPkg::Post-Invoke.
Parent Task: #14594 (closed)