Unzip

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Unzip
# 1  
Old 04-27-2017
Unzip

Hi All,

I am having an error with a zip . It is showing me the below error. I tried using
Code:
zip

and
Code:
jar

command all show me the same error. Not sure what is this error and why this is coming any help ?


Code:
>>>  jar -xvf 99999_zpd.zip
extracted: 100793_ipd0000.001.gz
extracted: 100793_ipd0001.001.gz
extracted: 100793_ipd0002.001.gz
extracted: 100793_ipd0003.001.gz
extracted: 100793_ipd0004.001.gz
extracted: 100793_ipd0005.001.gz
extracted: 999999_ipd0006.001.gz
extracted: 999999_ipd0007.001.gz
extracted: 999999_ipd0008.001.gz
extracted: 999999_ipd0009.001.gz
extracted: 999999_ipd0010.001.gz
extracted: 999999_ipd0011.001.gz
extracted: 999999_ipd0012.001.gz
extracted: 999999_ipd0013.001.gz
extracted: 999999_ipd0014.001.gz
extracted: 999999_ipd0015.001.gz
extracted: 999999_ipd0016.001.gz
extracted: 999999_ipd0017.001.gz
java.util.zip.ZipException: unexpected EOF
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:213)
        at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:139)
        at sun.tools.jar.Main.extractFile(Main.java:961)
        at sun.tools.jar.Main.extract(Main.java:877)
        at sun.tools.jar.Main.run(Main.java:263)
        at sun.tools.jar.Main.main(Main.java:1177) 

>> gunzip 999999_ipd0018.001.gz
gunzip: 99999_ipd0018.001.gz: unexpected end of file

>>  unzip -l 99999_zpd.zip
Archive:  99999_zpd.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 99999_zpd.zip or
        99999_zpd.zip.zip, and cannot find 99999_zpd.zip.ZIP, period.


unzip 99999_zpd.zip
Archive:  99999_zpd.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 99999_zpd.zip or
        99999_zpd.zip.zip, and cannot find 99999_zpd.zip.ZIP, period.

# 2  
Old 04-27-2017
Quote:
Code:
java.util.zip.ZipException: unexpected EOF

"Unexpected EOF" means the file ended before it should have, like whatever uploaded the file aborted halfway through.

"999999_ipd0018.001.gz" is probably corrupt or just plain empty. You'll notice jar printed every filename leading up to this one, but not this one. That's because jar didn't succeed in extracting this file. I suppose it began extracting it, hit end-of-file (EOF) and quit.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 04-28-2017
Thanks 999999_ipd0018.001.gz is having data. I found another interesting thing

Step 1 : I did
Code:
gunzip 99999_ipd0018.001.gz

in one window

Step 2: Then I did
Code:
tail -f 99999_ipd0018.001.gz

on other window


step 1 terminated with the error . but step 2 is keeping on running it is running for almost 5 hours and all I see is all data is repeating. I think the file is corrupted. Is there any way to see the data in the file ?

Thanks
Arun
# 4  
Old 04-28-2017
If there is, you'll have discovered a revolutionary new form of data compression where you can throw away half a zip file and still get its contents back.

I'm not sure what you're doing by trying to read from a binary .gz file with tail, neither gunzip nor tail work that way.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unzip a gz file

Please tell me the unix command how to unzip a gz file(say a qwe.gz) and the orginal gz file should remain intact. Thanks in advance (7 Replies)
Discussion started by: pranabpal
7 Replies

2. Shell Programming and Scripting

Unzip the .zip file without using unzip utility in UNIX

I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix. Please help me resolve this issue Thanks ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies

3. UNIX for Advanced & Expert Users

Unzip Help

Hello All, I am trying to write a shell script(linux) where it just unzips the abc.zip file in the same folder. If I write unzip abc.zip in my shell script and try to run the shell script I am getting Error : ?Invalid command But when I run the command unzip abc.zip at the command prompt... (5 Replies)
Discussion started by: su2
5 Replies

4. SCO

Unzip

Hi, I have installed Unzip 5.3 on SCO Unix 5.05 Openserver and it successfully installs but when I go to unzip a file by using unzip <filename> I get ksh: unzip: not found . Any ideas?:o (1 Reply)
Discussion started by: twitchmaker
1 Replies

5. UNIX for Advanced & Expert Users

Unzip help

Hi, client is posting a zip file with named as "LM_SEEHERE_-_TMG_905678_20100504.zip". In zip file, inside we have 3 .csv files. how to unzip the file and client needs only "LM_SEEHERE_-_TMG_905678_20100504.csv" the other two files are products.csv,category.csv. They don't want these files... (2 Replies)
Discussion started by: kirankumar
2 Replies

6. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

7. Shell Programming and Scripting

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

8. UNIX for Dummies Questions & Answers

unzip!!!!!!

Hi, How to find the size of a zipfile after unzipping without unziping it? Pls let me know if anyone has idea abtit. Thanks (1 Reply)
Discussion started by: rags_s11
1 Replies

9. HP-UX

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

10. UNIX for Advanced & Expert Users

unzip

Is there any way to uncompress files in winzip/pkzip format which contain mulitple members without using the "unzip" command? (9 Replies)
Discussion started by: keroppi
9 Replies
Login or Register to Ask a Question