Java fails after upgrade to precise

Bug #924957 reported by Steve Conklin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Java doesn't work after an upgrade from Oneiric to precise.

To reproduce:

Install baseline Oneiric
Install jenkins:
  apt-get install jenkins
Upgrade to Precise

To fix it, I installed openjdk-7-jre, which solved the problem but also left openjdk-6 installed

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: openjdk-6-jre 6b24~pre4-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-12.20-generic-pae 3.2.2
Uname: Linux 3.2.0-12-generic-pae i686
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Wed Feb 1 10:14:21 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: openjdk-6
UpgradeStatus: Upgraded to precise on 2012-01-31 (1 days ago)

Revision history for this message
Steve Conklin (sconklin) wrote :
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
James Page (james-page) wrote :
Download full text (6.0 KiB)

I can confirm this; I followed this procedure to re-produce in a clean, up-to-date Oneiric schroot:

apt-get install jenkins
do-release-upgrade -d

After the upgrade all of the alternatives links related to openjdk-6 are broken:

update-alternatives: error: no alternatives for appletviewer.
update-alternatives: error: no alternatives for apt.
update-alternatives: error: no alternatives for extcheck.
update-alternatives: error: no alternatives for idlj.
update-alternatives: error: no alternatives for jar.
update-alternatives: error: no alternatives for jarsigner.
update-alternatives: error: no alternatives for java.
update-alternatives: error: no alternatives for javac.
update-alternatives: error: no alternatives for javadoc.
update-alternatives: error: no alternatives for javah.
update-alternatives: error: no alternatives for javap.
update-alternatives: error: no alternatives for jconsole.
update-alternatives: error: no alternatives for jdb.
update-alternatives: error: no alternatives for jexec.
update-alternatives: error: no alternatives for jhat.
update-alternatives: error: no alternatives for jinfo.
update-alternatives: error: no alternatives for jmap.
update-alternatives: error: no alternatives for jps.
update-alternatives: error: no alternatives for jrunscript.
update-alternatives: error: no alternatives for jsadebugd.
update-alternatives: error: no alternatives for jstack.
update-alternatives: error: no alternatives for jstat.
update-alternatives: error: no alternatives for jstatd.
update-alternatives: error: no alternatives for keytool.
update-alternatives: error: no alternatives for mozilla-javaplugin.so.
update-alternatives: error: no alternatives for native2ascii.
update-alternatives: error: no alternatives for orbd.
update-alternatives: error: no alternatives for pack200.
update-alternatives: error: no alternatives for policytool.
update-alternatives: error: no alternatives for rmic.
update-alternatives: error: no alternatives for rmid.
update-alternatives: error: no alternatives for rmiregistry.
update-alternatives: error: no alternatives for schemagen.
update-alternatives: error: no alternatives for serialver.
update-alternatives: error: no alternatives for servertool.
update-alternatives: error: no alternatives for tnameserv.
update-alternatives: error: no alternatives for unpack200.
update-alternatives: error: no alternatives for wsgen.
update-alternatives: error: no alternatives for wsimport.
update-alternatives: error: no alternatives for xjc.
update-alternatives: error: no alternatives for java.
update-alternatives: error: no alternatives for jexec.
update-alternatives: error: no alternatives for keytool.
update-alternatives: error: no alternatives for orbd.
update-alternatives: error: no alternatives for pack200.
update-alternatives: error: no alternatives for rmid.
update-alternatives: error: no alternatives for rmiregistry.
update-alternatives: error: no alternatives for servertool.
update-alternatives: error: no alternatives for tnameserv.
update-alternatives: error: no alternatives for unpack200.
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk-amd64/bin/appletviewer
update-java-alte...

Read more...

Revision history for this message
Matthias Klose (doko) wrote :

the preinst is supposed to remove the symlinks, and the postinst to re-generate these ...
looks like something goes wrong

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.