← Back to team overview

openjdk team mailing list archive

[Bug 905808] Re: java alternatives missing after upgrade to precise

 

I stumbled upon this problem when I tried to prepare a backport of
OpenJDK 6 and 7 to Debian squeeze. The problem appears to be caused by
the file debian/JB-jre.postinst.

It tries to avoid installing its alternatives in case of an upgrade,
assuming that those alternatives must have already been installed by the
previous version. IMHO this is an illegal assumption, as the previous
version could have been deconfigured or broken somehow.

So the fix I propose is to set "update_alternatives" to "y" and not try
to be clever about it.

The other debian/JB-*.postinst files seem to have the same problem.

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/905808

Title:
  java alternatives missing after upgrade to precise

Status in “openjdk-6” package in Ubuntu:
  Confirmed

Bug description:
  after upgrading to precise, the java alternatives symlinks seem to be
  broken, and not fixed by update-java-alternatives, which complains:

  mbp@joy% sudo update-java-alternatives -v -s java-1.6.0-openjdk-amd64
  resetting java alternatives
  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 jarsigner.
  update-alternatives: error: no alternatives for java.
  update-alternatives: error: no alternatives for javac.
  ....

  (or similarly with --auto)

  the binary files do exist and the .jinfo file seems valid.  It is true
  there is no java alternative in /etc/alternatives.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: openjdk-6-jdk 6b24~pre2-0ubuntu2
  ProcVersionSignature: Ubuntu 3.2.0-4.10-generic 3.2.0-rc5
  Uname: Linux 3.2.0-4-generic x86_64
  ApportVersion: 1.90-0ubuntu1
  Architecture: amd64
  Date: Sun Dec 18 08:27:26 2011
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  SourcePackage: openjdk-6
  UpgradeStatus: Upgraded to precise on 2011-12-15 (2 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/905808/+subscriptions



References