Ubuntu – Can’t unzip zip file in Terminal because of a single corrupted file

command lineunzipzip

I've got a large zip file that I am using Terminal to unzip, like so:

unzip /Volumes/9.25.17\ Backup/Documents.zip -d /Users/evan/Desktop/

When I try this, everything works fine until it tries to extract a particular mp4 file. It gets hung up on this one file every time:

inflating: /Users/evan/Desktop/Documents/Creativity/Rotblatt copy.mp4  error:  zipfile read error

I don't really care about this file – is there any way to tell terminal to ignore it while unzipping?

Best Answer

It's not that the file "copy.mp4" is corrupted, it is that the zip file itself has some damage.

You can attempt to fix the zip file:

zip -F /Volumes/9.25.17\ Backup/Documents.zip --out newfile.zip

and then attempt to extract the files from newfile.zip. If this does not work, you can attempt a more comprehensive fix:

zip -FF /Volumes/9.25.17\ Backup/Documents.zip --out newfile.zip

Related Question