Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've a corrupt zip file. I've tried to repair it with

zip -F file.zip

and

zip -FF file.zip

but was not successful. Is there another terminal tool under Linux for repairing?

share|improve this question

migrated from stackoverflow.com Aug 16 '09 at 0:41

This question came from our site for professional and enthusiast programmers.

    
Maybe the file is FUBR? –  LiraNuna Aug 30 '09 at 1:30

4 Answers 4

try this

zip -FF Corrupted.zip --out New.zip

This will scan the corrupted zip archive and make a new one eliminating the errors.

As a result you will get a new zip file. Then simply run this command.

unzip New.zip

Hope this helps.

share|improve this answer

DiskInternals ZIP Repair works perfectly under Wine it's saved me in the past.

share|improve this answer
2  
You can also just extract the actual executable from the installer using 7-Zip. Works like a charm. –  Goyuix Sep 25 '10 at 15:46

I'm not aware of a program that will do a better job repairing the archive though.

You might try

unzip -vt file.zip

just to see if maybe you can extract some of the files safely, or figure out which files in the archive are corrupt.

share|improve this answer
    
thanks for the hint, but i get the same result as with "zip -F" :( –  Sirakov Aug 13 '09 at 21:33

Just referenced this question in my answer to a similar one - Linux Mint 12 - how to open a .zip file in terminal

It is worth adding here what the zip manual currently says about the difference between -F and -FF:

The single -F is more reliable if the archive is not too much damaged, so try this option first.

So the first attempt would be:

zip -F broken.zip --out fixed.zip
unzip fixed.zip

And if that doesn't work:

zip -FF broken.zip --out fixed.zip
unzip fixed.zip
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.