1、jdk是作为rpm软件包安装的
但是,我手动删除了那个安装目录
default JDK 1.8 JDK1.8.0_ 111 latest
file/usr/Java/latestisnotownedbyanypackage
总0
rwxr-xr-x3根69jul2608:58。
rwxr-xr-x.14路由167sep232016 .
lwxrwxrwx1root root 16 jul 2608:57 default-/usr/Java/latest
lwxrwxrwx 1根根根12 jul 2608336058 JDK 1.8-JDK1.8.0_ 111
rwxr-xr-x9根268jul2608336057JDK1.8.0_111
lrwxrwxrwx 1根根根22 jul 2608336057 latest--/usr/Java/JDK1.8.0_ 111
default jdk1.8 latest
总0
rwxr-xr-x2根49jul2610:07。
rwxr-xr-x.14路由167sep232016 .
lwxrwxrwx 1根根16 jul 2608:57默认值--/usr/Java/latest
lwxrwxrwx 1根根根12 jul 2608336058 JDK 1.8-JDK1.8.0_ 111
lrwxrwxrwx 1根根根22 jul 2608336057 latest--/usr/Java/JDK1.8.0_ 111
2、再次安装后出现问题,表示已经安装
总长度168米
- rw-r-- r-- 1根根根根9.1毫秒282017 Apache-Tomcat-8.5.23.tar.gz
- rw-r---r---1根根根159 mdec 222016 JDK-8 u111-Linux-x64.rpm
rwxr-xr-x9根160jul2609336001Tomcat
preparing . # # # # # # # # # # # # # # # # # # # # # [ 100 % ]
package JDK1.8.0_ 111-2000:1.8.0 _ 111-FCS.x86 _ 64 isalreadyinstalled
要作为更换软件包安装,请执行以下操作
Apache-Tomcat-8.5.23.tar.gzjdk-8 u111-Linux-x64.rpm Tomcat
preparing . # # # # # # # # # # # # # # # # # # # # # [ 100 % ]
更新/安装.
1:jdk1.8。
0_111-2000:1.8.0_111-fcs ################################# [100%]Unpacking JAR files...
tools.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/lib/tools.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.8.0_111/lib/tools.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
plugin.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/plugin.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.8.0_111/jre/lib/plugin.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
javaws.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/javaws.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.8.0_111/jre/lib/javaws.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
deploy.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/deploy.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.8.0_111/jre/lib/deploy.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
rt.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/rt.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.8.0_111/jre/lib/rt.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/jsse.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.8.0_111/jre/lib/jsse.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/charsets.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.8.0_111/jre/lib/charsets.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/ext/localedata.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.8.0_111/jre/lib/ext/localedata.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
default jdk1.8.0_111 latest
不确定包是否完整
3、最后采用yum remove卸载,然后重新安装即可
看来以后不能采用删除软件包的方式
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package jdk1.8.0_111.x86_64 2000:1.8.0_111-fcs will be erased
--> Finished Dependency Resolution
base/7/x86_64 | 3.6 kB 00:00:00
epel/x86_64/metalink | 7.5 kB 00:00:00
epel/x86_64 | 3.2 kB 00:00:00
epel/x86_64/updateinfo | 928 kB 00:00:00
epel/x86_64/primary | 3.5 MB 00:00:05
extras/7/x86_64 | 3.4 kB 00:00:00
updates/7/x86_64 | 3.4 kB 00:00:00
updates/7/x86_64/primary_db | 4.3 MB 00:00:05
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Removing:
jdk1.8.0_111 x86_64 2000:1.8.0_111-fcs installed 258 M
Transaction Summary
=============================================================================================================================================================
Remove 1 Package
Installed size: 258 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Erasing : 2000:jdk1.8.0_111-1.8.0_111-fcs.x86_64 1/1
Verifying : 2000:jdk1.8.0_111-1.8.0_111-fcs.x86_64 1/1
Removed:
jdk1.8.0_111.x86_64 2000:1.8.0_111-fcs
Complete!
Preparing... ################################# [100%]
Updating / installing...
1:jdk1.8.0_111-2000:1.8.0_111-fcs ################################# [100%]
Unpacking JAR files...
tools.jar...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
default jdk1.8.0_111 latest