【问题标题】:tar: Unexpected EOF in archivetar:存档中出现意外的 EOF
【发布时间】:2012-10-25 03:36:44
【问题描述】:

我正在尝试提取 .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 没有运气

即使文件已损坏,我如何提取此文件?

【问题讨论】:

  • 请显示您正在使用的tar 命令,您在使用-z 吗?另外,使用file 来检查文件类型。
  • 文件类型tar.gz:gzip压缩数据,来自Unix,最后修改时间:Fri Nov 2 11:42:56 2012

标签: shell command centos extract tar


【解决方案1】:

您的 tar 文件被截断。 tar 提取存档中的所有内容,但无法发明缺失的部分。

【讨论】:

  • 我想提取所有内容并跳过丢失的部分,我该怎么做?
  • 缺的部分在最后,你不能不跳过缺的部分。
猜你喜欢
  • 1970-01-01
  • 2022-07-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-11-10
  • 1970-01-01
  • 2013-04-25
相关资源
最近更新 更多