我对 Ubuntu 非常陌生。话虽如此,我已经按照命令安装和卸载 Java 8 几个小时了。我正在尝试让 Android Studio 工作。我卸载了 Java 7,因为它需要 8,但我似乎无法让它工作。我通过删除整个文件夹来删除安装程序:
sudo rm -r /usr/lib/jvm/java-8-oracle/
然后我运行:
sudo apt-get install -f
sudo apt-get purge oracle-java8-installer
sudo apt-get install oracle-java8-installer
我得到的答复是:
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
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of oracle-java8-set-default:
oracle-java8-set-default depends on oracle-java8-installer; however:
Package oracle-java8-installer is not configured yet.
dpkg: error processing package oracle-java8-set-default (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
oracle-java8-installer
oracle-java8-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)
我很感激您在这方面的帮助,我会非常乐意回应。在这个问题解决之前我无法继续前进。谢谢