Linux 中tar解压包出现的问题解决

用tar命令解压.tar包的时候会出现以下错误:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
You used "tar -zxvf" for the second command. the 'z' option tells tar to use gzip to uncompress the file. Since you already uncompressed it in the first command, gzip doesn't know what to do with it, and it consequently croaks. Tar stops because gzip encountered a problem. So, with the file you have now, you would extract it with:
tar -xvf xxxxxx.x.x.tar

I would go back and re-gzip the tar file though (to save space):
gzip xxxxxx.x.x.tar
tar -zxvf xxxxxx.x.x.tar.gz

只需要把命令令改为:
tar -xvf xxxx.tar.gz

給TA打賞
共{{data.count}}人
人已打賞
服務器運維

WDCP V3 PHP降级方法

2016-6-4 17:43:22

服務器運維

DirectAdmin一键程序上传插件

2016-6-7 10:23:04

0 Reply AAuthor MManager
    暫無討論,說說你的看法吧
搜索