1826451 Members
4007 Online
109692 Solutions
New Discussion

Re: gunzip problem

 
M.sureshkumar
Regular Advisor

gunzip problem

i tried many times to gunzip for this file (nickel.kbncsms.tar.gz).but the output is invalid compressd data. And i also tried in windows, in windows the same problem.

this is file problem or any other problem.
8 REPLIES 8
T G Manikandan
Honored Contributor

Re: gunzip problem

you have to check

1.re-download the file
2.Make sure you did a ftp in binary mode from windows to unix

Then try doing a gunzip.

Else it should be a problem with the file
T G Manikandan
Honored Contributor

Re: gunzip problem

Patrick Wallek
Honored Contributor

Re: gunzip problem

I have seen that on some files at times as well. I have run into a couple of cases where the file was names something.tar.gz, but in reality it was not gzip'ed. It was just a tar file. Try just doing:

# tar -tvf nickel.kbncsms.tar.gz

and see what happens. If you see filenames then the author just made a mistake.

If you don't see filenames or get an error, then try redownloading.
Michael Schulte zur Sur
Honored Contributor

Re: gunzip problem

Hi,

if I am not mistaken the first two characters of a zipped file are PK, so try a more or a cat | od -x on that file to see, if it is a zip file.

Michael
A. Clay Stephenson
Acclaimed Contributor

Re: gunzip problem

My best guess is that when you downloaded the file, you did not specify a binary transfer and thus the file image is corrupt.
If it ain't broke, I can fix that.
Jeff Schussele
Honored Contributor

Re: gunzip problem

Hi,

Have you tested the integrity of the gzip file?

gunzip -t nickel.kbncsms.tar.gz

If it fails this - it's corrupt.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: gunzip problem

file filename

A. Clay probably nailed it. Happens to the best of us and me.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Chris Watkins_1
Respected Contributor

Re: gunzip problem

One thing to watch when downloading fia http method with MSIE
is that MSIE will sometimes "help" you out by unzipping the
file on the way down. Sometimes, you can merely rename the
file from "blah.tar.gz" to "blah.tar" and get lucky.
(When using IE, if the site gives FTP and HTTP options, always use FTP)
Not without 2 backups and an Ignite image!