Невозможно распаковать файл с помощью терминала Ubuntu

Я получил следующее сообщение об ошибке. ZIP-файл (5 ГБ) может быть слишком большим

Archive:  /home/wing92518/Documents/simulation_set_1_result/replication_1.zip
warning [/home/wing92518/Documents/simulation_set_1_result/replication_1.zip]:  849850736 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [/home/wing92518/Documents/simulation_set_1_result/replication_1.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
0
задан 18 December 2017 в 11:46

1 ответ

Поскольку ваш zip-файл поврежден (zipfile corrupt), вы можете попробовать восстановить его, а затем распаковать восстановленный файл:

zip -FF corrupt.zip --out repaired.zip
unzip repaired.zip  

Обратите внимание, что поврежденные части могут отсутствовать.

из руководства по распаковке:

-FF
   --fixfix
          Fix the zip archive. The -F option can be used if some portions of the archive are missing, but requires a reasonably intact central directory.  The input archive is scanned as usual, but zip
          will ignore some problems.  The resulting archive should be valid, but any inconsistent entries will be left out.

          When  doubled  as  in -FF, the archive is scanned from the beginning and zip scans for special signatures to identify the limits between the archive members. The single -F is more reliable if
          the archive is not too much damaged, so try this option first.

( через )

3
ответ дан 18 December 2017 в 11:46

Другие вопросы по тегам:

Похожие вопросы: