Linux安装JDK,解压报错:gzip: stdin: not in gzip format

问题描述

在Linux安装JDK tar -zxvf 命令解压时,报错,无法解压
报错内容:

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

问题截图

image

问题原因

安装包错误

问题解决

image

我之前下载的是 Oracle 的JDk包(明显就要小一些,可能是需要一些在线下载之类的)
换成 OpenJDK 的包就可以解压了

解决截图

image

posted @ 2022-11-06 11:29  mua~mua~  阅读(171)  评论(0编辑  收藏  举报