unzip命令出错 End-of-central-directory signature not found

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.

$ du -sh trunk.zip
2.3G    trunk.zip

  文件大小为 2.3G,可能是 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局限蛮大的呀。

你可能感兴趣的:(unzip命令出错 End-of-central-directory signature not found)