For Debian installs, prerm now supports failed-upgrade, which is