在Debian中通过apt-get安装Java 7(Oracle)

在Debian中通过apt-get存储库安装Oracle Java 7似乎不起作用。

apt-get install oracle-java7-installer 

看起来像apt-get不能识别oracle-java7-installer

pipe理得到答案后做一些谷歌..

 echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 apt-get update # Java 7 apt-get install oracle-java7-installer # For Java 8 command is: apt-get install oracle-java8-installer