LINUX:解壓問題tar: Child returned status


解壓某個文件時

#tar -zxvf xxxxx.tar.gz

出現下面的錯誤提示:

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 指令的用法,。

總之:我出現這個錯誤時,就是把指令改為:

tar -xvf xxxx.tar.gz

然后指令就運行了。。

若此法不管用,只能再想別的方法了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM