54
20
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?
54
20
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?
87
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.
6Thanks for this answer. Doing it this way didn't really give me a working zip-file, running the command again over the new zip file did do the trick. It was a desperate move, didn't expect it to work. – Rein – 2016-11-06T12:28:53.050
21
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
5
DiskInternals ZIP Repair works perfectly under Wine it's saved me in the past.
3You can also just extract the actual executable from the installer using 7-Zip. Works like a charm. – Goyuix – 2010-09-25T15:46:41.903
4
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.
2thanks for the hint, but i get the same result as with "zip -F" :( – None – 2009-08-13T21:33:26.697
Maybe the file is FUBR? – LiraNuna – 2009-08-30T01:30:12.410