Listing Debian packages which are not fully installed
From the dpkg
man page
-C, --audit
Searches for packages that have been installed only partially on your system. dpkg will suggest what to do with them to get them working.
So dpkg -C
(as user) may work. However, I can't test this since I don't have any broken packages.
I whould try something like this:
dpkg --list | grep -ve 'ii\|^rc'
Lists all packages that are not in state "installed" or "removed".