Usually caused by seriously misbehaving maintainer scripts that go into endless loops or try to get user input in DEBIAN_FRONTEND=noninteractive mode.
The commandline to find these logs is:
COMMAND='grep -E "Command was terminated after exceeding|Process KILLED - exceed maximum run time"'
|