java alternative link broken after upgrade

Bug #888100 reported by Scott Moser
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After recent upgrade to precise, I find that java programs are broken. Further investigation shows:

$ update-alternatives --display java
update-alternatives: warning: alternative /usr/lib/jvm/java-6-openjdk/jre/bin/java (part of link group java) doesn't exist. Removing from list of alternatives.
java - auto mode
  link currently points to /usr/lib/jvm/java-6-openjdk/jre/bin/java
No versions available.

$ dpkg -L openjdk-6-jre-headless | grep bin/java
/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-6-openjdk-amd64/bin/java-rmi.cgi
/usr/lib/jvm/java-6-openjdk-amd64/bin/java

It seems that openjdk-6-jre-headless now has a 'amd64' in its path that wasn't there before. This was not accounted for on upgrade and my /usr/bin/java link is broken.

An attempt to fix with update-java-alternatives failed, and made me worse off, I now have no /usr/bin/java link.
 $ sudo update-java-alternatives --set java-1.6.0-openjdk-amd64
 update-alternatives: error: no alternatives for appletviewer.
 update-alternatives: error: no alternatives for apt.
 update-alternatives: error: no alternatives for extcheck.
...
  update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk-amd64/bin/xjc
update-alternatives: error: no alternatives for policytool.
update-java-alternatives: plugin alternative does not exist: /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: openjdk-6-jre-headless 6b23~pre11-1ubuntu2
ProcVersionSignature: Ubuntu 3.1.0-2.3-generic 3.1.0
Uname: Linux 3.1.0-2-generic x86_64
ApportVersion: 1.25-0ubuntu1
Architecture: amd64
Date: Wed Nov 9 09:46:46 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: openjdk-6
UpgradeStatus: Upgraded to precise on 2011-11-07 (2 days ago)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

situation was fixed with:
  $ sudo dpkg --purge --force-depends openjdk-6-jre-headless
  $ sudo apt-get install openjdk-6-jre-headless

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openjdk-6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Philip Muškovac (yofel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 887077, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.