From the third paragraph about the meaning of the depends field in
The Depends field should also be used if the postinst, prerm or postrm scripts
require the package to be present in order to run. __Note, however, that the
postrm cannot rely on any non-essential packages to be present during the
The commandline to find these logs is:
COMMAND='grep -E "command not found|: not found"'