tar:存档中意外的EOF

时间:2012-11-05 10:01:43

标签: shell command centos extract tar

我正在尝试提取.tar.gz文件,但没有运气

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

文件tar.gz包含另一个只有问题的file.tar

当我试图提取.tar文件时,我得到了

tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

我试过-ignore-zeros -ignore-failed-read没有运气

即使它已损坏,我怎么能提取这个文件?

1 个答案:

答案 0 :(得分:1)

你的tar文件被截断了。 tar提取存​​档中存在的所有内容,但无法创建缺失的部分。