manually remove broken debs - weakish/cheat GitHub Wiki
If dpkg --force-all -r package
does not work, then:
mv /var/lib/dpkg/info/PACKAGE_NAME.* /tmp/
dpkg --force-all -r package
If dpkg --force-all -r package
does not work, then:
mv /var/lib/dpkg/info/PACKAGE_NAME.* /tmp/
dpkg --force-all -r package