i think we need to do it differently. The --remove-all is essential to workaround dpkg bugs.
if the error code is the problem we can do something like; update-alternatives --list flashplugin-... | wc -l || true to check whether there are no alternatives left. ** Changed in: gnash (Ubuntu) Status: Fix Released => In Progress -- package mozilla-plugin-gnash 0.8.5-0ubuntu1 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 2 https://bugs.launchpad.net/bugs/398213 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs