这个问题,今天在解压大文件的时候遇到的,但是我也试了下小文件也无法解压,均报错:

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

 

zip的来源不清楚,但是在windows可以正常解压,说明压缩包是没有坏的,google了不少答案,但看到的方案基本上都是用命令:

jar xvf xxx.zip

但是实际上执行后没有任何反应,不过可能压缩包不同,也许我不行,大家可以,顺便补充不下吧,jar命令如果不存在的话,是因为没有装java环境,apt-get或者yum安装一个即可。

7zip解压工具

最后找到了一个靠谱的解决方案,在这里备忘一下。

换个解压工具:7zip

链接: https://pan.baidu.com/s/1BoyGBhYWHjgeM19z9Ze4yg 密码: mci7

tar -jxvf p7zip_9.13_src_all.tar.bz2
cd p7zip_9.13
make
make install

解压方法:

7za x list.zip