Não é possível descompactar um arquivo com o terminal do ubuntu

0

Eu recebi a seguinte mensagem de erro. O arquivo zip (5GB) pode ser muito grande

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)
    
por wing 18.12.2017 / 09:44

1 resposta

4

Como seu arquivo zip parece estar corrompido ( zipfile corrupt ), você pode tentar reparar o arquivo e descompactar o arquivo reparado:

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

Observe que as partes corrompidas podem estar faltando.

do manual de descompactação:

-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.

( via )

    
por RoVo 18.12.2017 / 10:03