无法使用解压缩打开大型串联 zip 文件,尽管它可以用存档实用程序打开,但出现中央目录错误

Ali*_*orm 6 zip

我已经从 ftp 服务器下载了一个 7Gb 的 zip 文件,其中包含四 (4) 个部分的 pdf 和电影。我在我的机器上将这四个文件连接成一个 zip 文件,它用我的 Mac 的存档实用程序解压得很好。

但是,当我将这些文件上传到我的 Red Hat 服务器时,我无法解压缩这个串联的 zip 文件。我收到此错误:

Archive:  science_team_meeting_archive.zip
warning [science_team_meeting_archive.zip]:  2491989543 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [science_team_meeting_archive.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)

想法?

小智 6

尝试

zip -F science_team_meeting_archive.zip -O science_team_meeting_archive.fixed.zip
Run Code Online (Sandbox Code Playgroud)

如果这不起作用,你只需要更多的'F'

zip -FF science_team_meeting_archive.zip -O science_team_meeting_archive.fixed.zip
Run Code Online (Sandbox Code Playgroud)

如果其中任何一个工作,您然后正常解压缩:

unzip science_team_meeting_archive.fixed.zip 
Run Code Online (Sandbox Code Playgroud)

有关这方面的更多信息,请使用:

man zip
Run Code Online (Sandbox Code Playgroud)