1 unzip
我收到以下错误消息。zip 文件(5GB)可能太大
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)
Run Code Online (Sandbox Code Playgroud)
由于您的 zip 文件似乎已损坏 ( zipfile corrupt),您可以尝试修复该文件,然后解压缩修复后的文件:
zip -FF corrupt.zip --out repaired.zip
unzip repaired.zip
Run Code Online (Sandbox Code Playgroud)
请注意,损坏的部分可能会丢失。
来自解压手册:
-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.
Run Code Online (Sandbox Code Playgroud)
(通过)