汽车是对须藤许可协议易于得到-y安装Oracle-java7目录的安装程序 [英] Auto yes to the License Agreement on sudo apt-get -y install oracle-java7-installer

查看:123
本文介绍了汽车是对须藤许可协议易于得到-y安装Oracle-java7目录的安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Oracle的Java包的Ubuntu交互询问许可协议。所以,我不得不说'OK',然后'是'每一次,但我想自动化。我做的是这样的:

The Oracle Java package for Ubuntu interactively asks about the License Agreement. So I have to say 'OK' and then 'yes' every time, but I'd like to automate it. What I do is this:

sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java7-installer 

有没有一种简单的方法,不使用自动化预计该协议的过程?

Is there a simple way to automate the agreement process without using expect?

推荐答案

尝试了这一点:

sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
sudo apt-get -y install oracle-java7-installer 

这是我的Debian 7.1运行第3和第4个命令的帮助,所以我认为同样可以帮助在Ubuntu以及

running 3rd and 4th command on my debian 7.1 helps, so I think the same can help on ubuntu as well

这篇关于汽车是对须藤许可协议易于得到-y安装Oracle-java7目录的安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆