解压错误“未找到中央目录末尾的签名”

解压错误“未找到中央目录末尾的签名”

我有一个在 Windows/MS Word 中打开的 ZIP 文件(实际上它是一个 .DOCX 文件)。使用 LibreOffice / Mac 打开它会产生:

General Error.
General input/output error.

File说:

../Commission Plan.docx: Zip archive data, at least v2.0 to extract

unzip说:

Archive:  ../Commission Plan.docx
  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 ../Commission Plan.docx or
  ../Commission Plan.docx.zip, and cannot find ../Commission Plan.docx.ZIP, period.

我如何打开这个文件?

答案1

使用此替代 zip 过程来修复损坏的文件。(想法基于以下答案:https://askubuntu.com/questions/54904/unzip-error-end-of-central-directory-signature-not-found

mkdir DOCX
cd DOCX
jar xvf ../Commission\ Plan.docx
jar cvf ../Commission\ Plan2.docx *

这将使用系统上 Java 运行时内置的高级 zip 实用程序进行解压缩并重新压缩。

答案2

使用解压7z对我有用:

7z x COCR2_100.zip

通过 APT 安装apt install p7zip-full

相关内容