java related /etc/alternatives files broken after upgrading to gutsy

Bug #155641 reported by Simon Ruggier
6
Affects Status Importance Assigned to Milestone
icedtea-java7 (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

After upgrading to gutsy, I found that my java plugin, which was provided by sun-java6-plugin, was no longer working. I tried installing icedtea-java7-plugin, while purging sun-java6-jre, sun-java6-plugin, and sun-java6-bin, but it still didn't work. Then today I realized that all of the java related links in /etc/alternatives were broken, and running update-java-alternatives fixed that. If it's not clear, the bug is that my java environment likely broke during the upgrade, because I'm pretty sure that it was functional before that.

Revision history for this message
Test-tools (roland-verifysoft) wrote :

Hello,

In /usr/share/doc/icedtea-java7-jre/README.alternatives it is noted that e.g.
  update-java-alternatives --set icedtea
This is wrong, "icedtea" has to be replace with "java-7-icedtea"
  update-java-alternatives --set java-7-icedtea

Roland

Revision history for this message
Simon Ruggier (simon80) wrote : Re: [Bug 155641] Re: java related /etc/alternatives files broken after upgrading to gutsy

Your comment is a different problem, and thus belongs in a new bug.
If you don't start a new bug, it's not possible for developers to
track the problems separately.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Simon, why do you think this is a bug of icedtea-java7?

Roland, fixed the README, should be in the next upload.

Changed in icedtea-java7:
status: New → Incomplete
Revision history for this message
Simon Ruggier (simon80) wrote :

I'm not sure it's in icedtea-java7, perhaps it would make sense for
postinst of any java related package to verify that the java related
alternatives are all sane and functional, and fix them otherwise.
Perhaps this is not specific to java packages either, perhaps it is a
general issue with alternatives. Unfortunately, I will not be able to
reproduce this issue again, so it might be hard to test.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Thank you for reporting back.
I don't know which package it should be assigned to, but probably not icedtea-java7.

Changed in icedtea-java7:
importance: Undecided → Medium
status: Incomplete → New
Revision history for this message
Oliver Joos (oliver-joos) wrote :

Perhaps there is a problem with the uninstall procedure of icedtea-java which causes the symptoms of this bug.

I use the latest Ubuntu Hardy (beta). When I removed icedtea-java from my system today, the /etc/alternatives/java got broken. It was still linked to icedtea-java. I confirmed this with "sudo update-alternatives --display java". I expected that it gets linked back to sun-java6, like it was before installing icedtea-java.

Even reinstalling sun-java6 did not help. I was able to fix it with "sudo update-alternatives --auto java". I don't know if this is a good solution, but if so, then icedtea-java could do this in its uninstall-script.

Some background info: I uninstalled icedtea-java because "ProjectX" got an update today where it does not depend on icedtea-java anymore. Now it can also run with sun-java6.

packages/versions involved:
icedtea-java7-jre (7~b24-1.5+20080118-1)
sun-java6-jre (6-04-2)
project-x (0.90.4dfsg-0ubuntu3, updated to 0.90.4dfsg-0ubuntu4)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.