I try to unzip a zip file, but got an error:
$ unzip COCR2_100.zip
Archive: COCR2_100.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: COCR2_100.zip may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of COCR2_100.zip or
COCR2_100.zip.zip, and cannot find COCR2_100.zip.ZIP, period.
I googled but didn't find a solution. I was wondering why it is and how I should fix it? Thanks!
The zip file can be downloaded from COCR2_100. It is an application, and here is its website http://users.belgacom.net/chardic/cocr2.html.
My OS is 10.10.
Try this excellent solution:
steps:
jar xvf
in front of your file name, remembering to leave space before the start of your file name.The location of where the new files go varies, but usually best trick to find them is click on your computer name in Finder which should display most recent activity at top of all files.
If the
jar
command is not available, you can installfastjar
by pasting the following in terminal:The problem is exactly what it says. Unzip can't find the line of code that signals the end of the archive, so either:
P.S. Notice how the program is made for Windows. So you need Wine (from http://www.winehq.com or the Ubuntu Software Center) to run it.
Unzipping with 7z worked for me:
Install via APT with
apt install p7zip-full
.I had a similar issue today and had some success with dd and gunzip. Try this:
In my case I still got the "gunzip: stdin: unexpected end of file" error but at least I got some output to view.
Error can be caused by mixing up archive types:
I noticed that when using
unzip
, but on agunzip
(GNU) archive I would get this error, e.g.Using
gunzip
on this same archive performed without errors. !!I think the guys/gals that responded to you is on the right track it is very well a corrupted file. If that is the case then try another mirror to download the file. Your may try to install rar by opening terminal
sudo apt-get install rar
which for a true zip file rar is a little overkill. However it does add support for other formats and allows you to extracts different file types.