码迷,mamicode.com
首页 > 系统相关 > 详细

linux系统unzip文件报错的解决方案

时间:2017-03-08 22:17:12      阅读:397      评论:0      收藏:0      [点我收藏+]

标签:arc   directory   data   central   disk   ref   tle   isa   source   

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

  1. Archive:  data.zip
  2.   End-of-central-directorysignature not found.  Either thisfile is not
  3.   a zipfile, or itconstitutes one disk of a multi-partarchive.  In the
  4.   latter case the centraldirectory and zipfile comment will be found on
  5.   the last disk(s) of thisarchive.
  6. unzip:  cannot find zipfiledirectory in one of bbs.zip or
  7.        data.zip.zip,and cannot find data.zip.ZIP, period.

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

  1. wgethttp://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
  2. tar -jxvf p7zip_9.13_src_all.tar.bz2
  3. cd p7zip_9.13
  4. make
  5. make install

安装完成,

  1. 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

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

linux系统unzip文件报错的解决方案

标签:arc   directory   data   central   disk   ref   tle   isa   source   

原文地址:http://www.cnblogs.com/lilyonly/p/6523161.html

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