Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to unzip .zip file on linux machine

I have a large ~10GB zip file that was created using the standard Windows method (right click, select "send to compressed (zipped) folder"). I am able to unzip it just file on my Macbook.

I'm trying to unzip it on an EC2 machine. I know the file is a zip file because when I run file file.zip it says:

file.zip: Zip archive data, at least v2.0 to extract

Running unzip returns the following error:

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

Running tar xvf file.zip returns the following:

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains `<{\204\027\333"D\344\210\321o\331' where numeric         off_t value expected
tar: Archive contains `S\354\202},F\3546\276[\265\273' where numeric     time_t value expected
tar: Archive contains ``3c\254\372$:e' where numeric uid_t value expected
tar: Archive contains `\265\306\025+ܫL\352' where numeric gid_t value expected
...etc

Does anyone know what might be going wrong?

like image 316
TomBomb Avatar asked May 07 '19 22:05

TomBomb


1 Answers

Actually, 7-zip should makes this well, you can install it by:

sudo apt-get install p7zip-full

Then, you can extract your zip file as follows:

7z e file.zip
like image 112
Ofir Avatar answered Oct 04 '22 21:10

Ofir