gzip:stdin:not in gzip
format
tar:Child returned status 1
tar:由于前面的延迟的错误而退出
(英文为: tar: Error exit delayed from
previous errors )
各位在解压.gz或者.bz2格式的文件的文件的时候可能会出现这样的错误提示
原因:老外的解释为
This can happen when the downloaded JUNOS image file has
been corrupted during transfer. Download the file again and do not
modify the file in any way. If downloading via FTP, be sure to set
FTP client to use binary and not ASCII mode.
部分网友解释为:
有些网站是这样的,文件的下载链接不是直接指向文件,而是先指向一个页面,在这个页面里才是真的下载链接,所以在前一个页面上直接保存文件,实际上保存的是一个页面。
我个人认为在文件压缩的过程中压缩格式不同,后来改了后缀名。
解决办法:
1.首先用 file 命令查看该文件的真实属性
2.根据真实属性选择解压命令即可解决
其实,tar.bz2的解压就是连续两个命令才对。
我提供的就是一个思路。遇到这样的错误提示记得查看该文件的真实属性
文章来源:安渊璟 新浪博客
|