LinuxQuestions.org
Help answer threads with 0 replies.
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 07-08-2008, 03:45 PM   #1
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
New version of "unzip"?


Does anyone know if there's a newer version of "unzip" than "5.52"?

I got a call from a user at work that was having trouble with a batch job that pulls a file from an FTP site and unzips it in preparation for loading into a database. The local server is running a copy of unzip 5.50 that was compiled from Info-ZIP's sources (ages ago). Last month they started having trouble with their batch process (which is why they waited until this month to contact me ) not being to unzip the downloaded file. An error message:
Code:
missing 7 bytes in zipfile
is displayed before you even get the prompt for the password. After you enter the password, another error message:
Code:
invalid compressed data to inflate
is displayed followed by a message about "bad zipfile offset" and "attempting to re-compensate". When it's all done, only about 195K of data has been extracted from the 300K+ archive.

After some fiddling around that involved copying the downloaded archive file to a few different systems (UNIX/Linux/Windows), I found that the only place I could unzip the file was on an XP box using Winzip 9.0. All of the UNIX systems (Tru64 if it makes a difference which I highly doubt) were using unzip 5.50. The Linux system I attempted to unzip the file on was using V5.52. The latest version I seem to find available (on Sourceforge) is 5.52 from the Info-ZIP project page and that seems to be from early 2005. (So downloading that and recompiling it would probably be a waste of time.)

Anyone know of a newer version of unzip or some other tool that is able to deal with the (apparently) newer ZIP file format?

TIA

--
Rick
 
Old 07-08-2008, 05:08 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Use 7-zip...7z.. It is more capable
 
Old 07-08-2008, 06:00 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally Posted by rnturn View Post
Code:
missing 7 bytes in zipfile
is displayed before you even get the prompt for the password. After you enter the password, another error message:
Code:
invalid compressed data to inflate
I don't know much about ZIP archives, but from Googling that error, it looks like the most common cause is the downloader attempting to convert carriage-returns and line-feeds in the downloaded file, believing it to be text (eg with a TEXT-mode FTP transfer).

If that's true then it may be possible that the ZIP utility is a red herring, and it's just the downloader that's borked the file. Are you sure that the FTP transfer is being done in binary mode?
 
Old 07-08-2008, 11:15 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by rjlee View Post
Are you sure that the FTP transfer is being done in binary mode?
Yes. I copied the file that had been loaded from the FTP site by the Tru64 system onto the Linux and XP systems. I'm (all too) aware of the Windows FTP client's default of TEXT mode transfers and have made it a practice to issue a "bin" command before any file transfers (even on UNIX-to-UNIX transfers where BINARY is the default).

I can only assume that the original file itself seems to be okay since Winzip was able to unpack it without error. I don't follow developments in the Winzip arena. I'm guessing they found some burning need to alter the archive format. (Probably to sucker folks into buying the latest copy of the program.)

--
R
 
Old 07-08-2008, 11:31 PM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by amani View Post
Use 7-zip...7z.. It is more capable
I've grabbed the p7zip sources. Looks promising (I guess). I'll have to see how recent the version of gcc is on the Tru64 system where I compile those utilities. I'l try p7zip out on the Linux box first and see how it handles the oddball zipfile we've encountered.

Thanks...

--
R
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Where to "unzip" tar files? alaskazimm Linux - Software 5 04-30-2004 11:55 PM

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

All times are GMT -5. The time now is 07:50 AM.

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