Linux 使用unzip解壓時報錯End-of-central-directory signature not found

Linux 下,使用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.


1、原因一,是文件還在上傳之中,沒有上傳完。

2、

用jar 來解
$ jar xvf abc.zip
  如果出現
jar:Command not found
  要用yum下載
$ yum -y install java-1.6.0-openjdk-devel
安裝時間也就兩三分鐘
安裝完畢再次運行
再次運行
$ jar xvf abc.zip
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章