我尝试按照以下方式安装 Java,但无法正确安装。以下是错误消息显示的内容:
bsaitechnosales@bsaitechnosales:/var/lib/dpkg/info$ sudo apt-get in oracle-java8-installe
download failed
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)
对于dpkg
,我也尝试了上述步骤,之后重新尝试安装 Java,sudo apt-get purge java-oracle8-installer
但仍然收到上述相同的错误消息。请提供意见。
sudo rm /var/lib/dpkg/status
56 sudo touch /var/lib/dpkg/status
57 sudo apt-get update
我甚至按照下面提到的 URL 操作,但还是无法摆脱上述错误。请提出建议