bzip2: Data integrity error when decompressing

在linux下使用命令:

tar jxvf **.tar.bz2
 

解压.bz2格式压缩文件时,出现错误提示:

bzip2: Data integrity error when decompressing.
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover data from undamaged sections of corrupted files.

tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: 错误不可恢复:现在退出

文件无法解压。

原因即文件校验失败。

当在windows与linux互传文件、下载文件未完成等时,即容易出现该问题。解决方法只有一个:(换一种方式)重新下载/拷贝该文件,再进行解压缩。
当然,你也可以尝试使用命令修复一下:

$bzip2recover *.tar.bz2

点赞 (2)

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Captcha Code