How to solve: stdin: not in gzip format

Problem: I tried to unzip a file MyFile.tar.gz which looked like a gzipped file by the name. But while unzipping I encountered an error “gzip stdin not in gzip format” which was as following:

$tar xvzf MyFile.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

The error indicates that the file is not in Gzipped format. Then which format is it in? To find out, I ran file command on it:

file MyFile.tar.gz
MyFile.tar.gz: POSIX tar archive (GNU)

Reason: Reason for the error is quite evident. The file is not a gzipped file but a POSIX tar archive file. Which means it was not zipped at all but instead it was compressed using tar. It was simply renamed afterwards.

Solution: Since it was not a a gizzped file, a simple tar is able to extract the file:

tar xvf MyFile.tar.gz

I hope you found it helpful. Cheers :)



http://itsfoss.com/how-solve-stdin-gzip-format/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值