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

其他的就正常了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值