# 下載了一個.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
