服务报价 | 域名主机 | 网络营销 | 软件工具| [加入收藏]
 热线电话: #
当前位置: 主页 > 开发教程 > linux教程 >

UNZIP命令出错END-OF-CENTRAL-DIRECTORY SIGNATURE NOT FOUND

时间:2016-02-18 01:01来源: 作者: 点击:
data.zip文件有4G多,解压的时候出问题了. Archive: data.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central dire

data.zip文件有4G多,解压的时候出问题了.

Archive: data.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of bbs.zip or
data.zip.zip, and cannot find data.zip.ZIP, period.

出现这种情况,需要使用 7zip来解压

wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2?r=http://sourceforge.net/projects/p7zip/files/&ts=1283040874&use_mirror=voxel
tar -jxvf p7zip_9.13_src_all.tar.bz2
cd p7zip_9.13
make
make install

安装完成,

7za x data.zip

成功了

Linux 下,使用unzip解压时,报错:

unzip trunk.zip

Archive: trunk.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of trunk.zip or
trunk.zip.zip, and cannot find trunk.zip.ZIP, period.

文件大小为 2.2G,可能是 unzip 设置了这个限制吧。在网上查到要用 jar 来解

jar xvf trunk.zip

如果出现

jar:Command not found

要用yum下载

yum -y install java-1.6.0-openjdk-devel

再次运行

jar xvf trunk.zip

就能成功,看来,unzip局限蛮大的呀。

(责任编辑:最模板)
顶一下
(1)
20%
踩一下
(4)
80%
------分隔线----------------------------
栏目列表
热点内容