deborphan: The status file is in an improper state.
One or more packages are marked as half-installed, half-configured,
unpacked, triggers-awaited or triggers-pending. Exiting.
Please instead say:
deborphan: The status file is in an improper state. Run
egrep '^Status: |^Package: ' /var/lib/dpkg/status | egrep -B 1
to find out which.
Else it will take several hours for the user to figure out what is the problem.