Extra-bytes error when unzipping a file

When I enter unzip ../founation-latest.zip, it outputs this:

warning [../foundation-latest.zip]: 248 extra bytes at beginning or within zipfile (attempting to process anyway)

The file is 138KB. It unzips correctly, but why am I getting this error?

Answer

My issue was because I was trying to use “unzip” on MAC OSX which cannot handle things zipped with PKZIP.

I was able to brew install p7zip and unzip using the command 7za x some_file.zip.

I originally found the solution in this article: need-pk-compat-v4-5-can-do-v2-1

Attribution
Source : Link , Question Author : rainwater11 , Answer Author : ZachB

Leave a Comment