![错误 403:抱歉,不允许获取该类型的文件:14.04 中的 jdk-7u80-linux-x64.tar.gz](https://linux22.com/image/1084982/%E9%94%99%E8%AF%AF%20403%EF%BC%9A%E6%8A%B1%E6%AD%89%EF%BC%8C%E4%B8%8D%E5%85%81%E8%AE%B8%E8%8E%B7%E5%8F%96%E8%AF%A5%E7%B1%BB%E5%9E%8B%E7%9A%84%E6%96%87%E4%BB%B6%EF%BC%9A14.04%20%E4%B8%AD%E7%9A%84%20jdk-7u80-linux-x64.tar.gz%20.png)
我已经安装 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