9

System says my zip file is okay, but I can't extract it through unzip. I think maybe because it's such a large file (34 GB) that unzip might not support it.

Is there a way to get this to work?

cygnus_x1
  • 102
  • 13
hamidi
  • 225
  • 2
  • 3
  • 8
  • 2
    What error's do you get ? – Soren A Sep 25 '17 at 13:50
  • 1
    What's the complete command used ? If you used a GUI could you try with unzip command ? – pLumo Sep 25 '17 at 13:54
  • i tried the command line unzip. i get the following: file #66350: bad zipfile offset (lseek): 38631718912 and file #65841: bad zipfile offset (local header sig): 35508700841 – hamidi Sep 25 '17 at 13:58
  • it seems that unzip is not ready for such a large file – hamidi Sep 25 '17 at 13:59
  • i tried also 7z (the command line tools), but it didn't work either with no error. – hamidi Sep 25 '17 at 14:02
  • 2
    @hamidi or the `zip` file is corrupt or incomplete! – George Udosen Sep 25 '17 at 14:03
  • yes, or, but how can i make sure? at first step, i prefer to accept the integrity of the zip file. because during making it, he didn't get any error. – hamidi Sep 25 '17 at 14:06
  • Use the `shasum` from the source if avalable or or `zip -T existing.zip` – George Udosen Sep 25 '17 at 14:09
  • what is it? calculates shasum for a file, like md5 or something? how can it help? – hamidi Sep 25 '17 at 14:10
  • 1
    Did you run `zip -T name_of_zip_file.zip`? – George Udosen Sep 25 '17 at 14:17
  • Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/66145/discussion-between-hamidi-and-george). – hamidi Sep 25 '17 at 14:18
  • Could you please [edit] your post, when you want to add information? Especially file or program output [listings](/editing-help#code) (with the help of the `{}` button in the editor toolbar) will be much more readable there; alternatively you can use a [pastie service](https://paste.ubuntu.com/) for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks. – David Foerster Sep 25 '17 at 15:04

5 Answers5

4

I just extracted a 13GB file. I was unable to unzip it using the extract tool, right clicking on the file (I'm in KDE, so this is dolphin). I ran into a similar error, where it said that "The archive you're trying to open is corrupt. Some of the files may be missing or damaged.". Instead I used dtrx from the command line, and it worked on the first try.

To install dtrx I typed: sudo apt-get install dtrx

To run the extraction I typed dtrx filename.zip with no flags.

DRFeinberg
  • 56
  • 4
4

Using the java archiver (as suggested here) did the trick for me. The syntax is as follows:

jar xvf file.zip
Hagbard
  • 141
  • 3
3

I think your file download is incomplete. From here it says:

For reference purposes, with the Zip64 extension to the Zip file format enhancement, Zip files of 16 exabytes, which is over 16 billion gigabytes (or 2 to the 64th power bytes) are possible. Likewise, over 4 billion files and folders can be included in a Zip file.

Please check the integrity of your zip file with: zip -T name_of_zip_file.zip, an OK is expected if download was complete. And current Ubuntu 64bit has zip64 capability already compiled into your zip tool. Check that with zip -v

George Udosen
  • 35,970
  • 13
  • 99
  • 121
0

say, did you try all the other unpackers which are available ? there is also p7zip, b1 Archiver (snap store) and more..

i have had couple of zips rars and so forth sometime, which did not or did not correctly unpack, in case this happens i simply switch to use another unzipper/unpacker for the file.

(it sometimes helps)

Bas Lamerichs
  • 670
  • 7
  • 23
0

I suggest 7zip

If it is not already installed, install the p7zip-full package:

sudo apt-get install p7zip-full

Then do:

7z x file.zip  

You can also use it with .7z and (with p7zip-rar) .rar files.

ntg
  • 521
  • 6
  • 17