ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux下unzip命令出错问题

linux下unzip命令出错问题

原创 Linux操作系统 作者:regonly1 时间:2012-01-05 09:47:16 0 删除 编辑
linux下用unzip加压一个zip格式的压缩文件,出现如下报错:
[oracle@DB ~]$ unzip guotai_customer.zip
Archive:  guotai_customer.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 guotai_customer.zip or
        guotai_customer.zip.zip, and cannot find guotai_customer.zip.ZIP, period.

不知道是什么原因,查了google,发现是因为压缩文件大于2G的缘故,使用
jar命令来解压即可:
jar xvf guotai_customer.zip

执行,发现报错:
[root@DB ~]# jar
-bash: jar: command not found

要安装这个包:
java-1.6.0-openjdk-devel

使用yum,内网连不上rh的资源库。只好自己想办法从iso安装包中取。还好,找dvd版的iso中找到了,执行安装:
[root@DB ~]# rpm -i java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        java-1.6.0-openjdk = 1:1.6.0.0-1.2.b09.el5 is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386
        libjli.so is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386
        libjli.so(SUNWprivate_1.1) is needed by java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386

还是报错,还要依赖其他包,于是把所有可能的都找了出来,然后首先把相近的安装上去:
[root@DB ~]# rpm -i java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

再试试看:
[root@DB ~]# rpm -i java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm
warning: java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

ok,成功了。

然后执行解压:
jar xvf guotai_customer.zip

参考链接:
http://hi.baidu.com/dudangyimian/blog/item/66e5c0cdd270a70b01e9289a.html

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12932950/viewspace-714447/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-05-10

  • 博文量
    257
  • 访问量
    1018750