Error: bzip2: Compressed file ends unexpectedly; # perhaps it is corrupted?
Posted ylnchen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: bzip2: Compressed file ends unexpectedly; # perhaps it is corrupted?相关的知识,希望对你有一定的参考价值。
# 下载了一个.tar.bz2结尾的压缩文件,
# 使用tar -xjf解压,但是报错。
# 使用tar -xjf解压,但是报错。
# 报错信息:
# bzip2: Compressed file ends unexpectedly;
# perhaps it is corrupted? *Possible* reason follows.
# bzip2: Inappropriate ioctl for device
# 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: Child returned status 2
# tar: Error is not recoverable: exiting now
# bzip2: Compressed file ends unexpectedly;
# perhaps it is corrupted? *Possible* reason follows.
# bzip2: Inappropriate ioctl for device
# 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: Child returned status 2
# tar: Error is not recoverable: exiting now
# 解决方式:换源
cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache
以上是关于Error: bzip2: Compressed file ends unexpectedly; # perhaps it is corrupted?的主要内容,如果未能解决你的问题,请参考以下文章
LeetCode Design Compressed String Iterator
python read_compressed_file.py
powershell PowerShell:将GUID转换为Packed / Compressed