sun-dlj-v1-1 license could not be presented

Bug #45292 reported by Jonathan Anderson
34
Affects Status Importance Assigned to Milestone
sun-java5 (Ubuntu)
Fix Released
Low
Matthias Klose

Bug Description

Binary package hint: sun-java5-jdk

I ran "apt-get install sun-java5-jdk", and everything downloaded, but then:

Unpacking sun-java5-bin (from .../sun-java5-bin_1.5.0-06-1_i386.deb) ...
sun-dlj-v1-1 license could not be presented
dpkg: error processing /var/cache/apt/archives/sun-java5-bin_1.5.0-06-1_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 2
Unpacking sun-java5-jre (from .../sun-java5-jre_1.5.0-06-1_all.deb) ...
sun-dlj-v1-1 license could not be presented
dpkg: error processing /var/cache/apt/archives/sun-java5-jre_1.5.0-06-1_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 2
Unpacking sun-java5-jdk (from .../sun-java5-jdk_1.5.0-06-1_i386.deb) ...
sun-dlj-v1-1 license could not be presented
dpkg: error processing /var/cache/apt/archives/sun-java5-jdk_1.5.0-06-1_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/sun-java5-bin_1.5.0-06-1_i386.deb
 /var/cache/apt/archives/sun-java5-jre_1.5.0-06-1_all.deb
 /var/cache/apt/archives/sun-java5-jdk_1.5.0-06-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Cyclops (rms) wrote :

I wonder if it's because the new java license strictly forbids ubuntu from distributing Java as long as it can install gcj, kaffee, etc..?

The Fine license says:

    Sun also grants you a (...) limited license to reproduce and distribute the Software, (...) provided that you do not combine, configure or distribute the Software to run in conjunction with any additional software that implements the same or similar functionality or APIs as the Software;

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :

Huh... I hadn't read the actual license before. I thought that the whole *point* of the DLJ was to make it possible for distros to include Java!

I also thought that it was developed in collaboration with some of the core Debian people (and you know *they* don't approve of legally encumbering stuff).

So... what's the deal?

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

What debconf frontend and priority did you set as default ("dpkg-reconfigure debconf" will tell you)

It works here just fine with the dialog fontend

Thanks,
 Michael

Revision history for this message
Toni Ruottu (toni-ruottu) wrote :

This happened to me too.
I was using "non-interactive" debconf frontend.
Switching to "dialog" worked as a workaround.

Changed in sun-java5:
status: Unconfirmed → Confirmed
Revision history for this message
Richard Laager (rlaager) wrote :

My recently filed bug #45442 is a dup of this, but has some more info.

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :

Hi,

Unfortunately, that computer is dead (apparently, Dell's BIOS won't let you boot if the RTC goes down/gets corrupted). I might be able to answer anyway, though:

If "dialog" means a GUI dialog, then no, debconf has never opened anything GUI. Still a bug, in my opinion: what if you don't *have* X (e.g. on a server)?

If "dialog" means a "please read this license agreement"-type screen implemented via 'less', then I'm not sure.

Anyway, sorry about the timing. If I'd seen your question just a few hours earlier...

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

The machine on which I had the problem was configured with the noninteractive frontend. Mine (which worked) was configured with "Dialog".

Revision history for this message
JMN (jac-freeshell) wrote :

Jon Anderson: "Dialog" doesn't use X, it seems to use a curses interface.

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :

Well, I can't verify this on my PC (as I mentioned), but a curses dialog (or the message that I saw for non-interactive setups) seems very reasonable.

I guess that I'm satisfied with this package, then... the bug (feature request?) is more applicable to debconf than Java.

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :

Changing package since it's not a Java bug but a debconf behaviour.

Debconf really ought to say something a little more sensical than "[license name] could not be presented"... something like

[license name] could not be shown and accepted since debconf is running non-interactively. Run 'dpkg-reconfigure debconf' to change this behaviour, or [do something else] to accept the license.

Changed in sun-java5:
status: Confirmed → Unconfirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

This isn't debconf's responsibility; debconf is a generic framework for asking questions, and already provides maintainer scripts all the necessary knowledge to handle this kind of situation themselves. The maintainer script using debconf should catch non-zero return codes from db_input and print a better error message.

(Blaming debconf for this is a little like blaming the C compiler because somebody displayed an unclear error message with printf()!)

Changed in debconf:
status: Unconfirmed → Confirmed
Revision history for this message
Ryan Bearfield (ryan-bearfield) wrote :

It will install properly fron synaptic. I had the same problem installing from command line.

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

the debconf mode will be set to somethings else than noninteractive; also making the error message more prominent.

Changed in sun-java5:
assignee: nobody → doko
status: Confirmed → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

fixed in 1.5.0-07

* Give a more verbose error message when the license or the agreement
    question cannot be presented; point to 'dpkg-reconfigure debconf' to
    select a frontend other than noninteractive. Ubuntu #44891, #45292, #46096.

Changed in sun-java5:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.