$ sudo dpkg --force-all -P mailscanner dpkg - warning, overriding problem because --force enabled: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. (Reading database ... 99211 files and directories currently installed.) Removing mailscanner ... Purging configuration files for mailscanner ... Removing report files ... may take some time Removing report files ... may take some time dpkg - warning: while removing mailscanner, directory `/var/spool/MailScanner/quarantine' not empty so not removed. dpkg - warning: while removing mailscanner, directory `/var/spool/MailScanner/incoming' not empty so not removed. dpkg - warning: while removing mailscanner, directory `/var/spool/MailScanner' not empty so not removed. dpkg - warning: while removing mailscanner, directory `/var/lib/MailScanner' not empty so not removed. dpkg - warning: while removing mailscanner, directory `/var/run/MailScanner' not empty so not removed. dpkg - warning: while removing mailscanner, directory `/var/lock/subsys/MailScanner' not empty so not removed. dpkg - warning: while removing mailscanner, directory `/var/lock/subsys' not empty so not removed.