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

# 下载了一个.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

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

时间: 2024-10-23 16:40:04

Error: bzip2: Compressed file ends unexpectedly; # perhaps it is corrupted?的相关文章

(知道因为下载数据库错误,而导致解压失败,但是找不到下载到哪里了呀!原来在这里)EOFError: Compressed file ended before the end-of-stream marker was reached

把下载好的数据放在这里就行了 背景:运行LeNet识别CIFAR-10的图像的代码时,报错: EOFError: Compressed file ended before the end-of-stream marker was reached 解决办法:在C:\Users\华硕\.keras\datasets的目录下面把 cifar-10-batches-py 这个文件夹删掉 原因: 第二次运行时,报错为找不到data_batch_1 这个文件,我的cifar-10-batches-py文件夹

snort在使用过程中遇到的问题:ERROR: OpenAlertFile() => fopen() alert file log/alert.ids:No such file or directory

转自:http://www.cnblogs.com/kathmi/archive/2010/08/09/1795405.html Snort是著名的开源入侵检测工具,不仅它的嗅探功能极佳,在服务器安全方面也可提供安全防护. 近期因为涉及此项内容,故记录下来. 使用的软件如下: Snort_2_8_6_Installer.exe(按照默认路进安装即可) WinPcap_4_1_2.exe snortrules-snapshot-2860.tar.gz(规则库,解压到Snort的安装目录,如果提示重

error: zlib.h:no such file or directory

今天在编译openssl时,出现了 error: zlib.h:no such file or directory 去看了下出错的文件,里面这么一句#include c_zlib.c:25:19: fatal error: zlib.h: No such file or directory # include <zlib.h> zlib地址:http://www.zlib.net/ zlib标准安装指导: /usr/local/src/zlib-1.2.8 构建静态库 .../zlib-1.2

问题描述: fatal error: &#39;XCTest/XCTest.h&#39; file not found

#import 解决方法:在报错的Target中的Building settings中FRAMEWORK_SEARCH_PATHS添加$(PLATFORM_DIR)/Developer/Library/Frameworks详解:http://stackoverflow.com/questions/24275470/xctest-xctest-h-not-found-on-old-projects-built-in-xcode-6 问题描述: fatal error: 'XCTest/XCTest

shell 报错:syntax error: unexpected end of file

有时执行脚本时会报错: [[email protected] shell]# sh -x test.sh + $'\r' : command not found test.sh: line 37: syntax error: unexpected end of file 原因可能是: 文本编辑是在windows下通过记事本或其它编辑器编写的这个文件,运行 在cygwin模拟LINUX软件环境下. 解决思路: DOS下文件和Linux下文件格式差异问题导致的. DOS下的文本文件是以\r\n作为断

【Linux】解决Android Stadio报错:error in opening zip file

报错: Failed to complete Gradle Execution Cause: error in opening zip file. 原因: 安装gradle失败引起的,往往是上网需要验证或是上网权限没有开通导致的: 解决: 1. 先删除原有的残余信息 rm -rf ~/.gradle ~/AndroidStudioProjects/.gradle 2. 检查网络配置,确保正常上网,android stadio代理上网配置操作: File -> Settings -> Http

spring boot tomcat 打本地包成war,通过Tomcat启动时出现问题: ZipException: error in opening zip file

一个第三方公司提供spring boot 项目,直接启动是ok的, 但是打包成war,通过Tomcat启动,就出现 ZipException: error in opening zip file: 20-Mar-2019 15:48:28.385 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [F:\dev\apache-t

MySQL启动错误ERROR! MySQL server PID file could not be found的解决办法

/etc/init.d/mysql start无法启动mysql错误信息如下: ERROR! MySQL server PID file could not be found! Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/var/AYXXXXXXXXXXX.pid). 完整日志信息如下: 140902 18:11:33 mysqld_safe Starting mysqld

syntax error:unexpected end of file

将window上编辑的xxy1.sh脚本上传到linux上,并执行的时候提示 xxy1.sh: line 17: syntax error: unexpected end of file 但是通过cat xxy1.sh查看脚本的时候,未发现语法异常,找了度娘后知道 原来是window和linux的文件格式不同导致,解决办法就是 (1)vi xxy1.sh (2)按下键盘Esc键,按下键盘":"冒号键 (3)输入:set fileformat=unix,后回车 (4)重复步骤2,输入:w