linux下unzip命令出错问题

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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12932950/viewspace-714447/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值