简体   繁体   English

在Ubuntu 16.04中执行命令“ sudo apt-get install oracle-java6-installer”时出错

[英]Error during the execution of command “sudo apt-get install oracle-java6-installer” in Ubuntu 16.04

I am getting the following error after execution of the command "sudo apt-get install oracle-java6-installer" 执行命令“ sudo apt-get install oracle-java6-installer”后出现以下错误

Note: I have an application which have the dependency in Java 6.I feel java 6 is obsolete. 注意:我有一个在Java 6中具有依赖性的应用程序。我觉得Java 6已过时。 But still is there any other way to install this. 但是仍然有其他方法可以安装它。

Error: 错误:

Setting up oracle-java6-installer (6u45-0~webupd8~8) ...
Downloading Oracle Java 6...
--2018-03-21 13:37:46--  http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
Resolving download.oracle.com (download.oracle.com)... 23.56.176.183
Connecting to download.oracle.com (download.oracle.com)|23.56.176.183|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin [following]
--2018-03-21 13:37:47--  https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.50.117.49, 2600:1417:75:199::2d3e, 2600:1417:75:19c::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.50.117.49|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1521619788_32d3144ce18a102db8f7ec93e2650e1c [following]
--2018-03-21 13:37:48--  http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1521619788_32d3144ce18a102db8f7ec93e2650e1c
Connecting to download.oracle.com (download.oracle.com)|23.56.176.183|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-03-21 13:37:50 ERROR 404: Not Found.

download failed
Oracle JDK 6 is NOT installed.
dpkg: error processing package oracle-java6-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 oracle-java6-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

You might want to download the jre 6 manually from the oracle website JRE SE 6 您可能想从oracle网站JRE SE 6手动下载jre 6

Edit: After accepting the license, you will be asked to login. 编辑:接受许可证后,将要求您登录。 You can register a free account and continue to download 您可以注册一个免费帐户并继续下载

It seems like it is no longer possible to download java 6, Oracle does not provided it to public anymore. 似乎不再可能下载Java 6,Oracle不再提供它。 The only way to download such version is to have a support contract with Oracle. 下载该版本的唯一方法是与Oracle签订支持合同。 Have a look at this post 看看这个帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在ubuntu Precision 64上使用apt-get安装JDK - Install JDK with apt-get on ubuntu precise 64 apt-get安装oracle java 7停止工作 - apt-get installing oracle java 7 stopped working 使用 Beam Java SDK 在 Google Dataflow 上安装 apt-get 依赖项 - Install apt-get dependencies on Google Dataflow with Beam Java SDK 当我运行以下命令时出现问题“Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)” - $sudo add-apt-repository ppa:webupd8team/java - Getting issue "Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)" when I am running following command - $sudo add-apt-repository ppa:webupd8team/java JDK可以使用`apt-get install`吗? - Can `apt-get install` be used for JDK? Java和sudo命令执行 - Java and sudo command execution 使用 apt-get install 安装 maven 会用 Java11 覆盖 Java8 - Installing maven using `apt-get install` overwrites Java8 with Java11 Ubuntu:如何让apt-get / synaptic为自己的应用程序工作 - Ubuntu: how to make apt-get/synaptic work for own application apt-get install -y openjdk-8-jdk 失败 - Apt-get install -y openjdk-8-jdk fails 如果Linux Distro没有从正在运行的Java程序中安装它,我如何告诉Linux Distro apt-get安装LibVLC? - How can I tell a Linux Distro to apt-get install LibVLC if it doesn't have it from a running Java Program?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM