java advice lacks sun-java6-jre (update-alternatives parser limitation?)

Bug #458411 reported by Tom Womack
This bug report is a duplicate of:  Bug #452393: Sun JVM is not mentioned for "java". Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: command-not-found

When I type 'java' with java not installed, I get a list of recommended packages

The program 'java' can be found in the following packages:
 * gij-4.3
 * java-gcj-compat-headless
 * openjdk-6-jre-headless
 * cacao
 * gij-4.2
 * jamvm
 * kaffe

which does not include sun-java6-jre. I would expect sun-java6-jre to be on the list, and am not quite sure why it's not the only recommendation.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: command-not-found 0.2.34ubuntu3
PackageArchitecture: all
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: command-not-found
Uname: Linux 2.6.28-15-generic x86_64

Revision history for this message
Tom Womack (tom-womack) wrote :
Revision history for this message
Waldir Leoncio (wleoncio) wrote :

I'm not 100% sure about this, but if openjdk is there, I believe sun java should be too.

Changed in command-not-found (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote : Re: java advice lacks sun-java6-jre

I looked at the package and it seems like sun-java6-jre uses a relatively complicated update-alternatives script to generate the binaries. This is not picked up by our parser.

Changed in command-not-found (Ubuntu):
importance: Undecided → Medium
summary: - java makes silly recommendations
+ java advice lacks sun-java6-jre
Revision history for this message
Michael Vogt (mvo) wrote :

For references, the scripts are part of sun-java6-bin.

summary: - java advice lacks sun-java6-jre
+ java advice lacks sun-java6-jre (update-alternatives parser limitation?)
Revision history for this message
Robert Roth (evfool) 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 #452393, 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.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

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.