I've a corrupt zip file. I've tried to repair it with
zip -F file.zip
zip -FF file.zip
but was not successful. Is there another terminal tool under Linux for repairing?
migrated from stackoverflow.com Aug 16 '09 at 0:41
This question came from our site for professional and enthusiast programmers.
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.
Hope this helps.
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:
So the first attempt would be:
And if that doesn't work:
I'm not aware of a program that will do a better job repairing the archive though.
You might try
just to see if maybe you can extract some of the files safely, or figure out which files in the archive are corrupt.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?