How to deal with unzip error on a large file in OSX?
I downloaded the latest Raspbian image from the raspberrypi.org website on my Mac running OS X 10.10.5 The SHA-1 checksum agrees with that listed on the website.
When I try to extract using unzip
I get the following error
warning [2015-09-24-raspbian-jessie.zip]: 76 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [2015-09-24-raspbian-jessie.zip]: reported length of central directory is
-76 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1
zipfile?). Compensating...
skipping: 2015-09-24-raspbian-jessie.img need PK compat. v4.5 (can do v2.1)
note: didn't find end-of-central-dir signature at end of central dir.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
I managed to unzip it with tar.
tar xzvf 2015-09-24-raspbian-jessie.zip
Requires no installation of additional software
The ZIP file can also be uncompressed using ditto
, no software installation needed:
ditto -x -k 2015-09-24-raspbian-jessie.zip .
Worked for me.
You can use 7za from p7zip installed from brew:
brew install p7zip
and then unzip using the command
7za x big_file.zip