Installing Sun Java in debian-live: license problems
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
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
Reply to: