oracle-java9-installer

今天 apt upgrade Ubuntu17.04时,java9出问题,方法在一篇博客上找到了,博客问题和我的问题基本一致(我的是JDK9):

Oracle JDK 7 is NOT installed.
dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oracle-java7-installer

Open a terminal (ctrl + alt + T) and type those two commands successively:
cd /var/lib/dpkg/info/
sudo rm oracle-java7-installer*
Open synaptic, search for “oracle-java7-installer”, mark it for complete removal and click “apply”.
Edit: For those that don’t have synaptic installed, after you rm the oracle installer files, just do:
sudo apt-get purge oracle-java7-installer
And you should be good.

所以解决方法就是命令:

cd /var/lib/dpkg/info/
sudo rm oracle-java9-installer*
sudo apt-get purge oracle-java9-installer

其他的就正常了

你可能感兴趣的:(编程)