LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-26-2009, 08:10 AM   #1
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110
Blog Entries: 1

Rep: Reputation: 16
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,,

Last edited by eng_mohammedmostafa; 05-26-2009 at 08:11 AM.
 
Old 05-26-2009, 08:12 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by eng_mohammedmostafa View Post
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.
 
Old 05-26-2009, 08:15 AM   #3
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
I am sure that the file in correct directory.
FYI . . I already extracted the second file V11789-01_2of2.zip and it successful
 
Old 05-26-2009, 08:22 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by eng_mohammedmostafa View Post
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
 
Old 05-26-2009, 08:22 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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
 
Old 05-26-2009, 08:29 AM   #6
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
[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
 
Old 05-26-2009, 08:33 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Which version of zip do you have on this system? Just type
Code:
zip
to find out.
 
Old 05-26-2009, 08:36 AM   #8
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
[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
 
Old 05-26-2009, 08:37 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
That's okay. I agree with i92guboj, at this point. Maybe the file is corrupted or incomplete. Can you download it again?
 
Old 05-26-2009, 08:41 AM   #10
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
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
 
Old 05-26-2009, 08:44 AM   #11
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by eng_mohammedmostafa View Post
[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.
 
Old 05-26-2009, 08:53 AM   #12
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
So , which zip tool may be help me in this issue
 
Old 05-26-2009, 09:10 AM   #13
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract WINRAR ZIP TO LINUX/UNIX linux_linux Linux - Software 2 03-15-2008 09:44 PM
How do I extract password pretected .zip files in linux i_s Linux - General 2 03-25-2005 04:47 AM
What program can I use to extract a rar file in linux? gbdavidx Linux - Software 3 11-20-2004 05:30 PM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM
How do I extract a multipart zip/ror file drspore Linux - General 2 02-07-2004 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration