我已经安装 oracle 的 jdk7 有64bit Ubuntu 14.04
一段时间了,它的表现符合预期。
然而最近我的所有更新都以错误告终,经过一番研究后我发现了以下问题:
Oracle JDK 7 is NOT installed.
dpkg: error processing package oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java7-installer
理由如下:
Downloading Oracle Java 7...
--2015-04-28 12:00:58-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:3142... connected.
Proxy request sent, awaiting response... 403 Sorry, not allowed to fetch that type of file: jdk-7u80-linux-x64.tar.gz
2015-04-28 12:00:58 ERROR 403: Sorry, not allowed to fetch that type of file: jdk-7u80-linux-x64.tar.gz.
我真的不知道如何修复这个问题。我尝试过清除并重新安装,但看起来这是 Oracle 禁止像我这样的 Ubuntu 用户下载。太大胆了!
答案1
清除所有旧版本并安装最新的 Oracle JDK。只需按照此处给出的步骤操作即可地点安装JDK