LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot extract ZIP file in Linux (https://www.linuxquestions.org/questions/linux-software-2/cannot-extract-zip-file-in-linux-728583/)

eng_mohammedmostafa 05-26-2009 08:10 AM

Cannot extract ZIP file in Linux
 
Dears,,

While trying to extract zip file in Linux, it gave me error:
See . . .

[root@rap05el DB-64]# unzip -v V11789-01_1of2.zip
Archive: V11789-01_1of2.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.
unzip: cannot find zipfile directory in one of V11789-01_1of2.zip or
V11789-01_1of2.zip.zip, and cannot find V11789-01_1of2.zip.ZIP, period.

Please, How can solve this?

Thanks & Regards,,

colucix 05-26-2009 08:12 AM

Quote:

Originally Posted by eng_mohammedmostafa (Post 3553127)
Archive: V11789-01_1of2.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.

Given the file name, most likely you miss the second part of the archive. It should be into the current directory, together with the first part.

eng_mohammedmostafa 05-26-2009 08:15 AM

I am sure that the file in correct directory.
FYI . . I already extracted the second file V11789-01_2of2.zip and it successful

colucix 05-26-2009 08:22 AM

Quote:

Originally Posted by eng_mohammedmostafa (Post 3553132)
I am sure that the file in correct directory.
FYI . . I already extracted the second file V11789-01_2of2.zip and it successful

Well... you don't have to extract the second part alone. What is the output of the following command?
Code:

$ file V11789-01_1of2.zip V11789-01_2of2.zip

i92guboj 05-26-2009 08:22 AM

Most likely, it's corrupt. If you downloaded it there's a chance that it's a partial download. If you know what size the file is supposed to have, double check it with ls -lh

eng_mohammedmostafa 05-26-2009 08:29 AM

[root@rap05el DB-64]# file V11789-01_1of2.zip V11789-01_2of2.zip
V11789-01_1of2.zip: Zip archive data, at least v2.0 to extract
V11789-01_2of2.zip: Zip archive data, at least v1.0 to extract

colucix 05-26-2009 08:33 AM

Which version of zip do you have on this system? Just type
Code:

zip
to find out.

eng_mohammedmostafa 05-26-2009 08:36 AM

[root@rap05el DB-64]# zip
Copyright (C) 1990-2005 Info-ZIP
Type 'zip "-L"' for software license.
Zip 2.31 (March 8th 2005). Usage:
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
The default action is to add or replace zipfile entries from list, which
can include the special name - to compress standard input.
If zipfile and list are omitted, zip compresses stdin to stdout.
-f freshen: only changed files -u update: only changed or new files
-d delete entries in zipfile -m move into zipfile (delete files)
-r recurse into directories -j junk (don't record) directory names
-0 store only -l convert LF to CR LF (-ll CR LF to LF)
-1 compress faster -9 compress better
-q quiet operation -v verbose operation/print version info
-c add one-line comments -z add zipfile comment
-@ read names from stdin -o make zipfile as old as latest entry
-x exclude the following names -i include only the following names
-F fix zipfile (-FF try harder) -D do not add directory entries
-A adjust self-extracting exe -J junk zipfile prefix (unzipsfx)
-T test zipfile integrity -X eXclude eXtra file attributes
-y store symbolic links as the link instead of the referenced file
-R PKZIP recursion (see manual)
-e encrypt -n don't compress these suffixes


Which option you need to know exactly

colucix 05-26-2009 08:37 AM

That's okay. I agree with i92guboj, at this point. Maybe the file is corrupted or incomplete. Can you download it again?

eng_mohammedmostafa 05-26-2009 08:41 AM

Unfortunately . . . I can not find it now because i downloaded it from along time and this source is missing in the web site now.
So, i tried to make any workaround to solve this

i92guboj 05-26-2009 08:44 AM

Quote:

Originally Posted by eng_mohammedmostafa (Post 3553150)
[root@rap05el DB-64]# file V11789-01_1of2.zip V11789-01_2of2.zip
V11789-01_1of2.zip: Zip archive data, at least v2.0 to extract
V11789-01_2of2.zip: Zip archive data, at least v1.0 to extract

It called my attention that both files have been packed with different versions of the zip tool. Maybe that's your problem and simply the first file (which fails) is not supported by your unzip tool.

eng_mohammedmostafa 05-26-2009 08:53 AM

So , which zip tool may be help me in this issue

i92guboj 05-26-2009 09:10 AM

You have zip 2.31. So, you have a lot of thing you could try still.

For example, there's a 2.32 version of that same tool. There's also a newer 3.0 version of that same tool. Both can be found at this web page if your distro has not a package for them:

http://www.info-zip.org/

There's also an unzip tool on that page, its versioning number is different, 5.52 now. If if the zip tool with -x doesn't work, try the unzip one instead.

If all of that fails, try p7zip, it might be able to uncompress the zip files as well.

If all else fails, you can still use a windows program under wine to uncompress it.

Of course, all of this assumes that the files is not corrupt. I can't be sure about that.


All times are GMT -5. The time now is 03:32 PM.