dpkg broken package fix
Last resort fix for broken packages in the dpkg system that fail on the invoke-rc.d stop command:
- Find the .prerm file for your program in var/lib/dpkg/info/
- Edit the line that says “invoke-rc.d [prog_name] stop || exit $?” to “/bin/true || exit $?”
- Try again. Done.