Linux下卸载jdk时,弹出error: Failed dependencies 该如何处理

虚拟机中装Linux,版本centOS6.6_64,之前已经安装好jdk了,卸载时弹出如下错误:

[root@localhost 桌面]# rpm -e jdk1.8.0_112-1.8.0_112-fcs.x86_64
error: Failed dependencies:
    jre >= 1.5.0 is needed by (installed) libreoffice-ure-1:4.0.4.2-14.el6.x86_64

提示卸载时的以依赖错误。 jdk版本是jdk1.8.0_112-1.8.0_112-fcs.x86_64。Google到一篇前辈的博文,更改代码如下:

[root@localhost 桌面]# rpm -e jdk1.8.0_112-1.8.0_112-fcs.x86_64 --nodeps

全部安装好,应该也不会影响软件使用,因为我之前安好jdk后还安装了tomcat9,没出现啥错误。

 

posted @ 2017-07-15 15:14  nightwac  阅读(730)  评论(0编辑  收藏  举报