$ sudo apt-get update $ sudo apt-get upgrade $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java7-installer OR sudo apt-get install oracle-java8-ins...
1. 添加 Java 8 PPA源 编辑一个新的ppa文件: $ sudo vim /etc/apt/sources.list.d/Java-8-debian.list 往文件中添加以下内容: deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb-src http://ppa.launchpad.net/webup...