Unable to unzip .zip file on linux machine

12,300

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
Share:
12,300
TomBomb
Author by

TomBomb

Updated on June 09, 2022

Comments

  • TomBomb
    TomBomb almost 2 years

    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?

  • TomBomb
    TomBomb almost 5 years
    Thanks for the answer. Tried 7-zip and got much farther, though it still failed in the end. The initial scan of the zip resulted in "ERRORS: Headers Error" The unzip gets most of the way through (~75%) before saying "ERROR: E_FAIL, Archives with Errors: 1, Open Errors: 1" I'm expecting about 88,000 files and I end up with ~55k
  • TomBomb
    TomBomb almost 5 years
    Oh! I'm out of space.
  • kk.
    kk. about 3 years
    This should be a comment and not the answer.