Распакуйте ошибку "Не найдена подпись конца центрального каталога"

17906
William Entriken

У меня есть ZIP-файл, который открывается в Windown / MS Word (на самом деле это файл .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. 

Как мне открыть этот файл?

3
«совершенно хорошо» не похоже на удачное описание. Скорее, у этого есть контрольный сигнал файла DOCX, который был загружен с WWW-сервера, который генерирует динамический контент, но не обслуживает файлы DOCX правильно. JdeBP 10 лет назад 0
JdeBP, честно. У меня нет объективной метрики для "отлично", обновленный текст. William Entriken 10 лет назад 0

2 ответа на вопрос

4
William Entriken

Use this alternate zip process to uncorrupt your file. (Idea based on answer at 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 * 

This will decompress and recompress using the superior zip utility build into the java runtime on your system.

Это решение работает для кого-то еще? William Entriken 9 лет назад 1
Спасибо за вопрос, да мне заплатили комиссию, и это было здорово! William Entriken 8 лет назад 0
Чем использование `jar` отличается от использования` zip -FF`? Pacerier 6 лет назад 0
1
Campa

У меня распаковка с 7z сработала:

7z x COCR2_100.zip 

Установить через APT с apt install p7zip-full.