Ubuntu: unzip error "End-of-central-directory signature not found"
Question: 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 http://www.xurion.be/cocr2/COCR2_100.zip.
It is an application, and here is its website http://users.belgacom.net/
chardic/cocr2.html.
My OS is 10.10.
Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):
== This solution helped 146 people ==
Try this excellent solution:
jar xvf COCR2_100.zip
steps:
1. drag and drop file into terminal window.
2. use keyboard arrows to navigate to start of line in terminal
3. type jar xvf in front of your file name, remembering to leave space
before the start of your file name.
4. grab a beer and watch terminal work its magic as it extracts files.
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 install fastjar by pasting the
following in terminal:
sudo apt-get install fastjar
== This solution helped 16 people ==
Unzipping with 7z worked for me:
7z x COCR2_100.zip
----
Install via APT with apt install p7zip-full.
== This solution helped 1 person ==
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.
== This solution helped 27 people ==
The problem is exactly what it says. Unzip can't find the line of code that
signals the end of the archive, so either:
1. The archive is corrupt.
2. It is not a .zip archive.
3. There are more than 1 parts to the archive, but that doesn't seem
possible to me. You should try the other mirror too. It worked for me.
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.
== This solution helped 2 people ==
Error can be caused by mixing up archive types:
I noticed that when using unzip, but on a gunzip (GNU) archive I would get this
error, e.g.
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. unzip: cannot find zipfile
directory in one of create_tables.sql.gz or create_tables.sql.gz.zip,
and cannot find create_tables.sql.gz.ZIP, period."
Using gunzip on this same archive performed without errors. !!
With thanks & praise to God! With thanks to all the many who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music & music license: https://www.bensound.com/royalty-free... | Images & images license: https://stocksnap.io/license and others | With thanks to user 青色衣衫 (https://askubuntu.com/users/89137), user Tim (https://askubuntu.com/users/1471), user Thomas (https://askubuntu.com/users/22425), user jokerdino (https://askubuntu.com/users/25798), user jbrock (https://askubuntu.com/users/331285), user gd2010 (https://askubuntu.com/users/129109), user freebird (https://askubuntu.com/users/20414), user Elliptical view (https://askubuntu.com/users/568145), user Campa (https://askubuntu.com/users/43200), and the Stack Exchange Network (http://stackoverflow.com/questions/54.... Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything should be amiss at Roel D.OT VandePaar A.T gmail.com.