每当我尝试清除 mongodb-org 或任何依赖项时,我都会收到此错误
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
dpkg: dependency problems prevent configuration of oracle-java7-set-default:
oracle-java7-set-default depends on oracle-java7-installer; however:
Package oracle-java7-installer is not configured yet.
dpkg: error processing package oracle-java7-set-default (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
oracle-java7-installer
oracle-java7-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)
请帮助我。
答案1
问题不在于mongodb-org
。问题在于oracle jdk
尝试清除oracle-java7
包
sudo apt-get purge oracle-java7-installer oracle-java7-set-default
如果上述命令出现任何错误,请尝试remove
清除。
不要安装oracle-jdk
它们,因为它们不受 ubuntu repo 的官方支持,因此经常会出现问题。请尝试openjdk
一下。