So I installed it in a chroot, and it worked perfectly. I removed it from my (non-chroot) system, and reinstalled it - didn't work. I again removed it, but also renamed /etc/java-6-sun, and reinstalled it - didn't work. I purged it, reinstalled it, and it worked.
So I still don't know what caused it, but at least it's fixed (except for sun-java5-bin, but I suppose purging it will also fix it). I also have an strace output of a failing apt-get -f install (attached), but it didn't make me any wiser. I'm attaching it anyway in case someone wants to have a look. Any idea what file(s) could've been responsible for it, if it wasn't /etc/java-6-sun? Possibly something was wrong with whatever data dpkg had stored about the package? Thanks for your help, Matthias. I suppose this can be closed now. Ludo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]