解决解压JDK报错:tar: Error is not recoverable

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决解压JDK报错:tar: Error is not recoverable相关的知识,希望对你有一定的参考价值。

报错

#tar -xvf jdk-8u131-linux-x64.tar.gz,执行命令后报错如下:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

完美解决

在wget后添加一下
 --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" 
命令如下:
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"  “你需要下载的东西”

Java8 信息输出

[[email protected] script]# tail -n 5 /etc/profile   #环境变量设置
#Java Env
export JAVA_HOME=/server/source/jdk1.8.0_191
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin

[[email protected] script]# java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
[[email protected] script]#

以上是关于解决解压JDK报错:tar: Error is not recoverable的主要内容,如果未能解决你的问题,请参考以下文章

解压缩报错tar: Error is not recoverable: exiting now

memcached解压报错gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recovera

Linux报错:tar: Error Is Not Recoverable: Exiting Now

Error: bzip2: Compressed file ends unexpectedly; # perhaps it is corrupted?

解压.tar.gz出错gzip: stdin: not in gzip format tar: /Child returned status 1 tar: Error is not recoverab

gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting