linux unzip命令解压失败的解决方法

2015年06月04日 02:55 by:老修--走失的镜头盖
Linux 下,使用unzip解压时,报错:
  1. unzip aaa.zip

Archive: aaa.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 aaa.zip or
aaa.zip.zip, and cannot find aaa.zip.ZIP, period.

通常出现这种错误的主要原因是zip压缩包超过2G,那么就要用jar命令来解压了

用jar 来解运行:

  1. $ jar xvf abc.zip

如果出现

  1. jar:Command not found
用yum 安装jar命令包
  1.  yum -y installjava-1.6.0-openjdk-devel
安装时间也就1分钟,安装完毕再次运行
  1. jar xvf abc.zip
标签:linux unzip