unzip: cannot find zip file directory
By Emily Wilson •
I used right click then compress to zip the folder called m1 and got m1.zip folder but when I tried to extract it again I got.
Archive: m1.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: m1.zip may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of m1.zip or m1.zip.zip, and cannot find m1.zip.ZIP, period. 1 Answer
The issue is precisely as stated. Unzip is unable to locate the line of code that indicates the end of the archive, thus either:
The archive has been corrupted.
It is not a.zip file.
You can try this solution :-
jar xvf m1.zipsteps:
- drag and drop file into terminal window.
- use keyboard arrows to navigate to start of line in terminal
- type jar xvf in front of your file name, remembering to leave space before the start of your file name.
- grab a beer and watch terminal work its magic as it extracts files.
The position of where new files go vary, but the simplest way to locate them is to click on your computer's name in Finder, which should display the most recent activity at the top of all files.
You can refer this.
If the jar command is not available, you can install fastjar by pasting the following in terminal:
sudo apt-get install fastjar 5