linux 解压zip 超过2g,.zip文件过大时候解压报错
Archive: data.zip End-of-central-directorysignature not found. Either thisfile is not a zipfile, or itconstitutes one disk of a multi-partarchive. In thelatter case the centraldirectory and zipfi...
Archive: data.zip End-of-central-directorysignature not found. Either thisfile is not a zipfile, or itconstitutes one disk of a multi-partarchive. In the
latter case the centraldirectory and zipfile comment will be found on the last disk(s) of thisarchive.
unzip: cannot find zipfiledirectory in one of bbs.zip or data.zip.zip,and cannot find data.zip.ZIP, period.
今儿开发人员找过来说解压缩一个压缩包失败了,一般出现这个问题有两种情况
1、通过查看发现unzip会有大小限制的情况
2、还有一种情况就是压缩包没有被下载完整所导致
但是第二种情况虽然使用方法可以将文件解压,但是解压出来的文件少,所以还是需要重新下载解压。
一般出现解压失败这种情况,需要使用 7zip来解压
wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2r=http://sourceforge.net/projects/p7zip/files/&ts=1283040874&use_mirror=voxel
tar -jxvf p7zip_9.13_src_all.tar.bz2
cd p7zip_9.13
make
make install
安装完成,
7za x data.zi成功了
一、Linux 下,使用unzip解压时,报错:
unzip trunk.zip
Archive: trunk.zip
End-of-central-directorysignature not found. Either thisfile is not
a zipfile, or it constitutesone disk of a multi-partarchive. In the
latter case the centraldirectory and zipfile comment will be found on
the last disk(s) of thisarchive.
unzip: cannot find zipfiledirectory in one of trunk.zip or
trunk.zip.zip,and cannot find trunk.zip.ZIP, period.
文件大小为 2.2G,可能是 unzip 设置了这个限制吧。在网上查到要用 jar 来解:jar xvf trunk.zip
(1).如果出现
jar:Command not found
(2).要用yum下载
yum -y install Java-1.6.0-openjdk-devel
(3).再次运行
jar xvf trunk.zip
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)