[afnog] EXTRACTING A ZIP FILE ISSUE
Frank Habicht
geier at geier.ne.tz
Wed Oct 21 12:19:39 UTC 2015
hi,
what does the "file" command say ?
man file
Frank
On 10/21/2015 1:49 PM, Grace wrote:
> Dear Stephane,
>
> I did both -F and -FF before posting this message and here is the error:
>
> inflating: xx.sql bad CRC f36776d0 (should be b6dfd2b4)
>
> inflating: xx.sql bad CRC f36776d0 (should be b6dfd2b4)
>
> On 10/21/2015 12:30 PM, Stephane Bortzmeyer wrote:
>> On Wed, Oct 21, 2015 at 11:25:08AM +0200,
>> Grace <grace.i at ricta.org.rw> wrote
>> a message of 28 lines which said:
>>
>>> Archive: xx.bak.zip
>>> error [xx.bak.zip]: start of central directory not found;
>>> zipfile corrupt.
>> On Unix, zip has options to fix broken files:
>>
>> -F
>> --fix
>> -FF
>> --fixfix
>>
>> The good practice is to start with -F (which is more gentle) and, if
>> it fails, try with the harsher -FF. (In your case, giving the error
>> message, you will probably needs -FF.)
>>
>> From the manual:
>>
>> Fix the zip archive. The -F option can be used if
>> some portions of the archive are miss‐
>> ing, but requires a reasonably intact central
>> directory. The input archive is scanned as
>> usual, but zip will ignore some problems. The
>> resulting archive should be valid, but any
>> inconsistent entries will be left out.
>>
>> When doubled as in -FF, the archive is scanned from the
>> beginning and zip scans for spe‐
>> cial signatures to identify the limits between the
>> archive members. The single -F is more
>> reliable if the archive is not too much damaged, so try
>> this option first.
>
More information about the afnog
mailing list