Broken .zip file

Hi everybody!
I created a .zip file on a mac of my school.
It's a big file, named "Archivio.zip" and sized 6,6 GiB.
Trying to unpack it using unzip Archivio.zip outputs:

Archive:  Archivio.zip
warning [Archivio.zip]:  4294967296 extra bytes at beginning or within zipfile
  (attempting to process anyway)
file #1:  bad zipfile offset (local header sig):  4294967296
  (attempting to re-compensate)
   creating: 2013/
error: invalid zip file with overlapped components (possible zip bomb)

surely it's not corrupted, the Mac handles it correctly.
"Correcting" it using zip -F /home/nicolo/Archivio.zip --out menosmonco.zip stops at file being 4 GiB of size.
I need to open it... What can I do?

1 Like

sorry @Luca_Pavan for the strange file names haha

1 Like

Perhaps this Apple thread might help:

https://discussions.apple.com/thread/1733214

It may also indicate a failing thumb drive or the thumb drive was not formatted for Apple FS.

1 Like

menosmonco :face_with_raised_eyebrow::rofl:. What do you have on 6,6 GiB? School stuff? Sure you didn't move some games inside :grin:?

This makes me think that the unzipper has a limit for unzipping procedures, but you can simply open the zip and drag everything outside, this way you work around the limit. Of course, for order, better if you create a folder where you want to drag all files.

1 Like

Have you tried unzip instead? According to the man pages, you need version 6.0+ of unzip to be able to handle files larger than 4GB (which explains why the extraction stops at exactly that point). However, on ZorinOS 16.2 Core, there seems to be installed two separate utilities: zip (version 3.0) and unzip (version 6.0).

It's not clear to me whether these version should be able to handle files larger than 4GB, but since they are different programs, it's probably worth a try.

4 Likes

zen I also found unzip 6.0 on Synaptic Package Manager ..... that is where I downloaded it from ..... just a heads up as I don't use the software store ....

1 Like

Menosmonco! Only School Stuff...

1 Like

No, I am unpacking a file zipped on a mac on zorin...

Unzip says:

nicolo@nicolo-pc:~$ unzip Archivio.zip Archive: Archivio.zip warning [Archivio.zip]: 4294967296 extra bytes at beginning or within zipfile (attempting to process anyway) file #1: bad zipfile offset (local header sig): 4294967296 (attempting to re-compensate) creating: 2013/ error: invalid zip file with overlapped components (possible zip bomb) nicolo@nicolo-pc:~$

It does not let me open it... Archive Manager (gnome's one) stucks at Reading Archivio.zip with 100% of CPU use and my machine almost freezing (maybe I'll have to wait more...) and ARK (kde's one) tells me it's not a .zip file

1 Like

Maybe this'll work. installing jar

Please tell me jammy is a good thing. PLEASE.

Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 default-jre-headless amd64 2:1.11-72build2 [3.042 B]
Get:2 http://security.ubuntu.com/ubuntu jammy-security/main amd64 openjdk-11-jre-headless amd64 11.0.18+10-0ubuntu1~22.04 [41,6 MB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 default-jre amd64 2:1.11-72build2 [896 B]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 default-jdk-headless amd64 2:1.11-72build2 [942 B]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 default-jdk amd64 2:1.11-72build2 [908 B]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 fonts-dejavu-extra all 2.37-2build1 [2.041 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 libatk-wrapper-java all 0.38.0-5build1 [53,1 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libatk-wrapper-java-jni amd64 0.38.0-5build1 [49,0 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 xorg-sgml-doctools all 1:1.11-1.1 [10,9 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy/main amd64 x11proto-dev all 2021.5-1 [604 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy/main amd64 libice-dev amd64 2:1.0.10-1build2 [51,4 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpthread-stubs0-dev amd64 0.4-1build2 [5.516 B]
Get:13 http://archive.ubuntu.com/ubuntu jammy/main amd64 libsm-dev amd64 2:1.2.3-1build2 [18,1 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxau-dev amd64 1:1.0.9-1build5 [9.724 B]
Get:15 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxdmcp-dev amd64 1:1.1.3-0ubuntu5 [26,5 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy/main amd64 xtrans-dev all 1.4.0-1 [68,9 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxcb1-dev amd64 1.14-3ubuntu3 [86,5 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy/main amd64 libx11-dev amd64 2:1.7.5-1 [744 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxt-dev amd64 1:1.2.1-1 [396 kB]                  
Get:20 http://security.ubuntu.com/ubuntu jammy-security/main amd64 openjdk-11-jre amd64 11.0.18+10-0ubuntu1~22.04 [193 kB]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/main amd64 openjdk-11-jdk-headless amd64 11.0.18+10-0ubuntu1~22.04 [214 MB]

It's working!!! It's extracting my files!
(the cpu is 100% and everything is laggy, it's still doing it, not even at a half and already the folder is 20gb)

Hope it goes well. For other reasons Engrampa is better than Ark.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.