我尝试安装openjdk-7-jre
。它显示了如下错误
E: Package 'openjdk-7-jre' has no installation candidate
所以我尝试了
sudo add-apt-repository ppa:webupd8team/java
它运行良好。然后我通过命令更新
sudo apt-get update
它也运行良好。但是在命令之后
sudo apt-get install oracle-java7-installer
我收到错误
E: Sub-process /usr/bin/dpkg returned an error code (1)
我正在粘贴错误消息。它显示下载失败,并且未安装 Oracle JDK 7。错误在哪里?该怎么办?
Connecting to download.oracle.com (download.oracle.com)|49.44.132.27|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-10-13 23:21:49 ERROR 404: Not Found.
download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing package oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for fontconfig (2.11.94-0ubuntu2) ...
Errors were encountered while processing:
oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)