Comment 7 for bug 905808

Revision history for this message
Jonas Eschenburg (indyjo) wrote :

I stumbled upon this problem when I tried to prepare a backport of OpenJDK 6 and 7 to Debian squeeze. The problem appears to be caused by the file debian/JB-jre.postinst.

It tries to avoid installing its alternatives in case of an upgrade, assuming that those alternatives must have already been installed by the previous version. IMHO this is an illegal assumption, as the previous version could have been deconfigured or broken somehow.

So the fix I propose is to set "update_alternatives" to "y" and not try to be clever about it.

The other debian/JB-*.postinst files seem to have the same problem.