The way I see it, the files in /var/lib/dpkg/alternatives/ needs to have at least three lines, and the last line needs to be empty. You can also try to temporarily move away that directory, replacing it with an empty one.
-- dpkg 1.15.3.1ubuntu1 fails to install/upgrade https://bugs.launchpad.net/bugs/397498 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