码迷,mamicode.com
首页 > 其他好文 > 详细

Error: bzip2: Compressed file ends unexpectedly; # perhaps it is corrupted?

时间:2020-04-13 12:29:29      阅读:501      评论:0      收藏:0      [点我收藏+]

标签:rop   tin   bec   std   repos   make   cache   zip   下载   

# 下载了一个.tar.bz2结尾的压缩文件,
# 使用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
 
# 解决方式:换源
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?

标签:rop   tin   bec   std   repos   make   cache   zip   下载   

原文地址:https://www.cnblogs.com/YlnChen/p/12690196.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!