http://www.piprime.fr/1480/manually-remove-broken-package-debian-ubuntu/
The solution : manually uninstall the package
To manually uninstall the broken package run the two commands below as root in Debian, preceded by sudo in Ubuntu :
mv /var/lib/dpkg/info/PAQUET.* /tmp/
dpkg --remove --force-remove-reinstreq PAQUET
Or even more simple way. An example:
sudo rm /var/lib/dpkg/info/packagename-here*
sudo dpkg -r --force-depends --force-remove-reinstreq packagename-here
https://forums.linuxmint.com/viewtopic.php?f=90&t=275992#p1543182