Jdk 8 安装问题?我用的是 ubuntu 17.10 版本

Jdk 8 安装问题?我用的是 ubuntu 17.10 版本

当我运行此命令时:

sudo apt-get install oracle-java8-installer

然后就会出现错误:

Download done.
Removing outdated cached downloads...
sha256sum mismatch jdk-8u151-linux-x64.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)

答案1

尝试这个:

sudo rm /var/cache/oracle-jdk8-installer/jdk-8u151-linux-x64.tar.gz

相关内容