Installing Sun Java in debian-live: license problems
On Sat, Nov 03, 2007 at 08:10:55PM -0400, Will Murnane wrote:
> I'd like to install the sun-java6-jre package and its dependencies in
> my debian-live image. However, when I try to include it in my
> configuration (--packages "... sun-java6-jre") I get an error saying I
> haven't accepted the license yet. Where is this acceptance stored? I
> did figure out how to force the packages to be installed, in a rather
> messy way:
>
> $ cat config/chroot_local-hooks/install-java.sh
> . /usr/share/debconf/confmodule
> db_set shared/accepted-sun-dlj-v1-1 true
Why not just use debconf-set-selections here?
> apt-get install -y sun-java6-jre
> apt-get clean
>
> and here's the error I receive, whether the script is there or not:
> Unpacking sun-java6-bin (from .../sun-java6-bin_6-00-2_i386.deb) ...
>
> sun-dlj-v1-1 license could not be presented
> try 'dpkg-reconfigure debconf' to select a frontend other than noninteractive
>
> dpkg: error processing
> /var/cache/apt/archives/sun-java6-bin_6-00-2_i386.deb (--unpack):
> subprocess pre-installation script returned error exit status 2
>
> How should I go about this in a cleaner way? Perhaps d-l should use
> the "accepted licenses list" of the build machine?
>
> Thanks!
> Will
>
> _______________________________________________
> debian-live-devel mailing list
> debian-live-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20071104/4b0e7caf/attachment.pgp
Reply to: