Comment 41 for bug 634487

mr.b (mr.b) wrote :

Also, if you wish to remove all listed packages, first you can run this, to see the list of packages-to-be-removed:

echo `dpkg --list | tail -n +6 | grep -v -E "^ii" | cut -d" " -f3`

After you are 100% sure that you know what exactly is going to be removed (so you don't get your system to even more corrupted state), then replace "echo" with "dpkg --purge".