使用tar解压文件提示gzip: stdin: not in gzip format错误 1. 问题描述 使用docker save xxxx > xxx.tar导出镜像,由于文件太大,需要split -b 3000m xxx.tar来分割文件,刻录到光盘然后导入到服务器上. 后面使用cat * | tar -xzv来解压压缩的镜像,随后使用docker load导入镜像. 开始的几次都没有问题,不过昨天同样的过程,提示gzip: stdin: not in gzip format. 2. 问题
今天下载了一个Linux内核文件,解压的时候出现了这样的错误: gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now 开始想不明白,最后发现是压缩包有问题,本来是七十多兆的文件,下载完只有二十几兆,然后又用迅雷重新下了一次,解压正常了.
报错如下: # tar zxvf php-7.1.6.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now 原因: 可能是由于上传的时候存现错误. 也有可能是解压文件的格式.和你 tar 的参数不一致的问题. tar.gz 的用 tar -zxvf 解压 解决: (暴力解决) 最好重新下载一个包.然后重新解压
在Linux环境下,通过tar -zxvf 命令解压文件时遇到”gzip: stdin: not in gzip format“等错误:如图所示 root@cmfchina:/usr/java# tar -zxvf jdk-8u144-linux-x64.tar.gz gzip: stdin: not in gzip format tar: Child returned status tar: Error is not recoverable: exiting now 最终发现这个压缩包没有用g