tar解压报错:gzip: stdin: not in gzip format Error is not recoverable: exiting now
程序员文章站
2022-05-30 16:41:30
...
今天tar解压a.tar.gz时报错:
sudo tar -xzvf a.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
原来,是因为该压缩包没有采用gzip格式进行数据压缩,命令修改为:
sudo tar -xvf maps.tar.gz
game over