Packages dependent on sun-java6-jre that use the JVM in postinst fail

Bug #868281 reported by Richard Wise
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Reproduced on Ubuntu 11.04 x64, with sun-java6-jre and sun-java6-bin package version 6.26-1natty1.

Expected: Installing a custom package with a dependency of sun-java6-jre and a postinst trigger that uses the JVM should work.

Actual: Failed postinst trigger due to "Error: could not open `/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/jvm.cfg'".

Cause: Because of the circular dependency between sun-java6-jre and sun-java6-bin, the JVM config files (in particular /etc/java-6-sun/jvm.cfg) are not renamed from *.dpkg-new before attempting to use Java in the postinst trigger of any packages that depend on sun-java6-jre (and implicitly java6-runtime or java6-runtime-headless). The temporary workaround is to alter the dependency for packages to explicitly rely on sun-java6-bin (to force package postinst to remove dpkg-new suffix), but this is not acceptable for official supplied packages (e.g. solr-common).

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.