The same problem appears with sun-java5. There's a probleme with this file 
that's empty :  /var/lib/dpkg/alternatives/java
So commands for update-alternatives doesn't give a good result :

$ update-alternatives --list java
> update-alternatives: erreur ou fin de fichier lors de la lecture de 
> /var/lib/dpkg/alternatives/java pour update_mode ()

The command :
$ whereis java
java: /usr/bin/java /etc/java /usr/share/java /usr/share/man/man1/java.1.gz

$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2010-01-22 18:50 /usr/bin/java -> 
/etc/alternatives/java

$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 40 2010-01-22 18:50 /etc/alternatives/java -> 
/usr/lib/jvm/java-6-openjdk/jre/bin/java

I've looked to Hardy's file  /var/lib/dpkg/alternatives/java which is
not empty at all...

Gone make a try to fill the Jaunty's file...


** Attachment added: "the content of hardy's /var/lib/dpkg/alternative/java 
file"
   http://launchpadlibrarian.net/39849122/java

-- 
package sun-java6-bin 6-16-0ubuntu1.9.04 failed to install/upgrade/uninstall
https://bugs.launchpad.net/bugs/519986
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

Reply via email to