So, you screwed up.
Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: <package>
Here’s how to force the removal of that package:
dpkg --remove --force-remove-reinstreq <package>