Java Debconf Problems

Bug #45442 reported by Richard Laager
6
Affects Status Importance Assigned to Milestone
sun-java5 (Ubuntu)
New
Medium
Unassigned

Bug Description

Binary package hint: sun-java5-doc

I tried to install the java JRE and SDK on a fresh Kubuntu machine. I (by accident) used aptitude, instead of apt-get. This pulled in the suggested sun-java5-doc. The install of the -doc package failed because apparently you have to download the file from Sun yourself.

I canceled the install (possibly with Ctrl-C, I don't remember). I then tried to do the install I wanted. It failed. I then figured I'd remove the partially-installed Java packages and try again. It still failed. The error was that the license could not be presented.

I unpacked the control data out of the deb by hand and looked at the preinst script that was failing. I then looked at /var/cache/debconf/config.dat and searched for the license info.

It was:
Name: shared/accepted-sun-dlj-v1-1
Template: shared/accepted-sun-dlj-v1-1
Owners: sun-java5-jdk, sun-java5-jre

On another machine that had Java successfully installed, it was:
Name: shared/accepted-sun-dlj-v1-1
Template: shared/accepted-sun-dlj-v1-1
Value: true
Owners: sun-java5-jdk, sun-java5-jre
Flags: seen

I added those two lines and tried the install again. It succeeded, saying the license was already accepted.

I'm not entirely sure what happened to break things, but this package should not have put Debconf into a state that I couldn't get out of.

Revision history for this message
Richard Laager (rlaager) wrote :

Probably a dup of 45292.

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.