Linux 下,使用unzip解压时,报错:
[root@vm50 ~]# unzip web-cms-template.zip -d /root/ // -d 解压到指定路径
Archive: web-cms-template.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 web-cms-template.zip or
web-cms-template.zip.zip, and cannot find web-cms-template.zip.ZIP, period.
[root@vm50 ~]#
解决:使用 jar 来解包
[root@vm50 ~]# jar xvf web-cms-template.zip
如果出现
jar:Command not found
则要用yum下载
yum -y install Java-1.6.0-openjdk-devel
再次运行
[root@vm50 ~]# jar xvf web-cms-template.zip