Ubuntu:Oracle JDK 8 未安装
我已经手动在ubuntu 14.04上安装了oracle JDK-8。但是每当我想安装一个需要jdk8的软件包时,apt-get会再次尝试安装jdk 8。我的国家是受限制的,所以oracle服务器不允许我下载jdk8。
$java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
apt-get 的结果是:
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
出现此错误时,apt-get 将无法完成安装。