Java installation error - digest mismatch

General support questions
Post Reply
vikashs
Posts: 6
Joined: 2018/02/03 09:38:15

Java installation error - digest mismatch

Post by vikashs » 2018/02/03 10:24:33

Hello,

Unable to install rpm Java package. it terminates with errors:

mycentos opt]# rpm -ivh jre-8u161-linux-x64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:jre1.8-1.8.0_161-fcs ################################# [100%]
error: unpacking of archive failed on file /usr/java/jre1.8.0_161/THIRDPARTYLICENSEREADME-JAVAFX.txt;5a758d28: cpio: Digest mismatch
error: jre1.8-1.8.0_161-fcs.x86_64: install failed

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Java installation error - digest mismatch

Post by TrevorH » 2018/02/03 10:32:46

What is the output from namei /usr/java/jre1.8.0_161/THIRDPARTYLICENSEREADME-JAVAFX.txt ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vikashs
Posts: 6
Joined: 2018/02/03 09:38:15

Re: Java installation error - digest mismatch

Post by vikashs » 2018/02/03 10:47:58

Output is:

f: /usr/java/jre1.8.0_161/THIRDPARTYLICENSEREADME-JAVAFX.txt
d /
d usr
d java
d jre1.8.0_161
THIRDPARTYLICENSEREADME-JAVAFX.txt - No such file or directory
f: ?
? - No such file or directory

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Java installation error - digest mismatch

Post by TrevorH » 2018/02/03 11:23:23

Not sure what the difference is between the 161 and 162 releases but 162 installed OK here. The error you're getting usually means that the file exists but either isn't a file (e.g. it's a directory) or it has been marked as immutable using chattr. In your case, it doesn't seem to be either but the problem you have is that the file cannot be created or renamed to the right name. Can you try the 162 installer and see if that's any different?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vikashs
Posts: 6
Joined: 2018/02/03 09:38:15

Re: Java installation error - digest mismatch

Post by vikashs » 2018/02/03 17:40:30

Hello,

I have tried 162 but same error.

[xxx usr]# rpm -ivh jre-8u162-linux-x64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:jre1.8-1.8.0_162-fcs ################################# [100%]
error: unpacking of archive failed on file /usr/java/jre1.8.0_162/COPYRIGHT;5a75f32c: cpio: Digest mismatch
error: jre1.8-1.8.0_162-fcs.x86_64: install failed

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Java installation error - digest mismatch

Post by TrevorH » 2018/02/03 18:02:10

What's the output of lsattr -d /usr/java ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply