1

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 1

2

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
  • 1
    i tried also this solution but got some of the files not all of them. and i tried also zip -FF m1.zip --out new.zip to fix the zip file and found that it can read all the files in the zip file but got the same problem in extracting it
    – sam
    Apr 3, 2022 at 9:31
  • I think you should reinstall jar ! Apr 3, 2022 at 9:34
  • excuse me how can i reinstall jar ?
    – sam
    Apr 3, 2022 at 9:53
  • Sorry for that, I haven't tried this ! One more thing you can use another third party zip applications ! Apr 3, 2022 at 10:05
  • thanks but like what please ? and if i want specific file form this zip file without extraction , can i do this or will be a problem
    – sam
    Apr 3, 2022 at 10:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .