Unzip: Cannot Find Zip File Directory

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:

  1. The archive has been corrupted.

  2. It is not a.zip file.

You can try this solution :-

jar xvf m1.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 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest