2022
我们一起努力

unzip命令不能使用并出现unzip: cannot find zipfile等字样解决办法(unzip命令不存在)

今天小编在centos下对zip进行解压发现系统自带的unzip无法使用,这种情况很少遇见!如图所示

解决办法:

$ unzip abc.zip

Archive: abc.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 abc.zip or

abc.zip.zip, and cannot find abc.zip.ZIP, period.

两个可能,一个zip超大,一个是zip打包有问题。

重新压缩再试试,还失败的话就

用jar 来解

$ jar xvf abc.zip

  如果出现

jar:Command not found

  要用yum下载

$ yum -y install java-1.6.0-openjdk-devel

安装时间也就两三分钟

安装完毕再次运行

再次运行

$ jar xvf abc.zip

注意这时:unzip abc.zip 也能正常解压,unzip正常使用了!

本文从互联网转载,来源地址:www.downzz.com/shell/28894.html,原作者保留一切权利,若侵权或引用不当,请联系茶猫云(cmy.cn)删除。【茶猫云,优质云服务器提供商】

赞(0)
文章名称:《unzip命令不能使用并出现unzip: cannot find zipfile等字样解决办法(unzip命令不存在)》
文章链接:https://www.fzvps.com/35914.html
本站文章来源于互联网,如有侵权,请联系管理删除,本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
图片版权归属各自创作者所有,图片水印出于防止被无耻之徒盗取劳动成果的目的。

评论 抢沙发

评论前必须登录!