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

.zip文件过大时候解压报错

时间:2018-06-24 16:07:33      阅读:376      评论:0      收藏:0      [点我收藏+]

标签:src   压缩包   not found   one   arc   make   tco   director   .net   

Archive:  data.zip  End-of-central-directorysignature not found.  Either thisfile is not  a zipfile, or itconstitutes one disk of a multi-partarchive.  In the

 latter case the centraldirectory and zipfile comment will be found on the last disk(s) of thisarchive.

unzip:  cannot find zipfiledirectory in one of bbs.zip or data.zip.zip,and cannot find data.zip.ZIP, period.

    

今儿开发人员找过来说解压缩一个压缩包失败了,一般出现这个问题有两种情况

1、通过查看发现unzip会有大小限制的情况

2、还有一种情况就是压缩包没有被下载完整所导致

但是第二种情况虽然使用方法可以将文件解压,但是解压出来的文件少,所以还是需要重新下载解压。    


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

wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2r=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.zi成功了

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

unzip trunk.zip

Archive:  trunk.zip

  End-of-central-directorysignature not found.  Either thisfile is not

  a zipfile, or it constitutesone disk of a multi-partarchive.  In the

  latter case the centraldirectory and zipfile comment will be found on

  the last disk(s) of thisarchive.

unzip:  cannot find zipfiledirectory in one of trunk.zip or

       trunk.zip.zip,and cannot find trunk.zip.ZIP, period.


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

(1).如果出现

jar:Command not found

(2).要用yum下载

yum -y install Java-1.6.0-openjdk-devel

(3).再次运行

jar xvf trunk.zip

.zip文件过大时候解压报错

标签:src   压缩包   not found   one   arc   make   tco   director   .net   

原文地址:http://blog.51cto.com/laobaiv1/2132203

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