解压缩多部分文件 - 错误的 zipfile 偏移量(本地 header sig):4

Unzipping the multipart file - bad zipfile offset (local header sig): 4

我有一个 13 GB 的文件,已使用 Winzip 中的 martipart 功能将其平均分割(Windows 7)。

我将文件上传到 Linux 服务器,我正在尝试将多部分文件合并为单个文件。但是我运行通过下面的错误。

拆分后的文件,

  total 9646432
  -rw-r--r-- 1 root root 730000000 Apr 14 20:57 file.z01
  -rw-r--r-- 1 root root 730000000 Apr 14 20:07 file.z02
  -rw-r--r-- 1 root root 730000000 Apr 14 20:01 file.z03
  -rw-r--r-- 1 root root 730000000 Apr 14 16:30 file.z04
  -rw-r--r-- 1 root root 730000000 Apr 14 16:24 file.z05
  -rw-r--r-- 1 root root 730000000 Apr 14 16:14 file.z06
  -rw-r--r-- 1 root root 730000000 Apr 14 16:08 file.z07
  -rw-r--r-- 1 root root 730000000 Apr 14 15:51 file.z08
  -rw-r--r-- 1 root root 730000000 Apr 14 15:46 file.z09
  -rw-r--r-- 1 root root 730000000 Apr 14 15:32 file.z10
  -rw-r--r-- 1 root root 730000000 Apr 14 15:27 file.z11
  -rw-r--r-- 1 root root 730000000 Apr 14 15:20 file.z12
  -rw-r--r-- 1 root root 730000000 Apr 14 14:28 file.z13
  -rw-r--r-- 1 root root 349166077 Apr 14 21:00 file.zip

服务器中的命令,

 #zip file.zip

我运行进入错误,

Archive:  file.zip
warning [file.zip]:  zipfile claims to be last disk of a multi-part archive;
attempting to process anyway, assuming all parts have been concatenated
together in order.  Expect "errors" and warnings...true multi-part support
doesn't exist yet (coming soon).
 file #1:  bad zipfile offset (local header sig):  4

我已经对 27MB 的测试文件进行了相同的测试,

 #ls
test.z01  test.z02  test.z03  test.z04  test.z05  test.zip


 [tbabu@fgtd-301705-130558-app001 .tbabu]$ unzip test.zip
Archive:  test.zip
warning [test.zip]:  zipfile claims to be last disk of a multi-part archive;
attempting to process anyway, assuming all parts have been concatenated
together in order.  Expect "errors" and warnings...true multi-part support
doesn't exist yet (coming soon).
file #1:  bad zipfile offset (local header sig):  4
file #2:  bad zipfile offset (local header sig):  207105
file #3:  bad zipfile offset (local header sig):  209345
..
..
file #302:  bad zipfile offset (lseek):  2924544
file #303:  bad zipfile offset (lseek):  2940928
..
..
..
inflating: en_US/1/2.zip
..
..
..

尽管收到上述消息,但我能够在测试中合并文件。

为什么无法使用 13Gb 文件?

非常感谢您的帮助。

你可以试试

cat test.z* > hugetest.zip
unzip hugetest.zip

基于 cat 的解决方案对我不起作用,但使用 zip -F file.zip --out file-large.zip 合并文件然后 unzip file-large.zip 确实有效。