Then grep for more keys you need to set in your automated installation.
What other keys do you have on your system in debconf's database? Install debconf-utils and do $ sudo debconf-get-selections Please refer to the manpage of debconf-set-selections on more details, but this is the example for your issue and works similar for other packages. We should now just tell debconf you already accept the Oracle Licence 1.1. If it is, the script will exit gracefully and allow the installation to continue without asking you the question. Windows Updates are current, I have tweaked all sorts of ActiveX and Plug-In options on and off within 'Internet Options' and the 'Java Control Panel', and the 'Verify Java Version' link ( http. In the source of the package, I tracked this down in the oracle-java7-installer.preinst file: license=oracle-license-v1-1Įcho "$license license has already been accepted" >&2Īpparantly, it uses debconf's value for the key shared/accepted-oracle-license-v1-1 to check whether the user has already accepted the license. Now this question should not appear! How did I find this? i find it to be a big Security Risk especially on windoze. i dont recommend have Java installed on you computer at all unless you absolutely need it. The Java (TM) SE Runtime Environment includes the JAVA Virtual Machine, runtime libraries and the necessary. This sets the value of the debconf key to true, but also marks it as seen by the user. Java(TM) SE Runtime Environment for Windows v8 update 45 (Latest stable version). Java 2 Runtime Environment (J2RE) contains all you need to execute JAVA applications. To select, Sun’s JVM as provided in Ubuntu 7.10, enter: sudo update-java-alternatives -s java-6-sun You also need to edit a file called /etc/jvm. $ echo debconf shared/accepted-oracle-license-v1-1 seen true | \ Ubuntu Linux comes with update-java-alternatives utility to updates all alternatives belonging to one runtime or development kit for the Java language. This pack is thought for users, not for developers, if you want to compile applications, you can download Java 2SDK Standard Edition. Do this before installing it: $ echo debconf shared/accepted-oracle-license-v1-1 select true | \ The Java (TM) SE Runtime Environment includes the JAVA Virtual Machine, runtime libraries and the necessary applications to launch programs written in JAVA language. * request the user to accept the Oracle license before installationĪs indicated in his answer, there should be a silent option. * removed cookie file use or else the PPA stays disabled oracle-java7-installer (7u7-0~webupd8~4) maverick urgency=medium
This answer is how to silence the license question with the Oracle package from the PPA.įirst, let's recognize the question asked is a feature of the package, created by the developer.
If OpenJDK/OpenJRE works fine for you, I recommend using that package instead as suggested by However, some software really requires Oracle's JDK/JRE.