探索,發現,愛好、學習,記錄,分享。
學海無涯,天涯若比鄰,三人行,必有我師。

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

版權聲明:本文采用知識共享 署名4.0國際許可協議 [BY-NC-SA] 進行授權
轉載事宜:如需轉載需徵得應允,轉載必須注明來源於本站的信息。
文章名称:《Linux 中tar解压包出现的问题解决》
文章链接:https://www.thefreesky.com/blog/22358.html
本站資源僅供個人學習交流,請於下載後24小時內刪除,不允許用於商業用途,否則法律問題自行承擔。

評論 抢沙发