我使用以下代码添加存储库,
sudo apt-add-repository ppa:webupd8team/java
然后我使用sudo apt-get update
更新了软件包,之后当我尝试使用以下命令安装Java时,
sudo apt-get install oracle-java8-installer
我收到错误,错误代码响应是,
2016-04-20 13:00:45(442 MB / s) - 'jdk-8u77-linux-i586.tar.gz'已保存[5165]
Download done.
Removing outdated cached downloads...
sha256sum mismatch jdk-8u77-linux-i586.tar.gz
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)
如何调试和解决这个问题,我是Ubuntu的新手。感谢。
答案 0 :(得分:1)
首先尝试安装JDK:
sudo apt-get install openjdk-7-jdk
谢谢,