bad, bad, gzip!

bad, bad, gzip!

Post by Neal » Thu, 23 Oct 1997 04:00:00



I'm a relative newbie, and am growing beyond the distribution installation.
 I'm ready to enter the realm of installing new software...

My problem is that virtually NOTHING will unzip! I've elicited answers from
friends and other newsgroups, but I can't seem to get anything to work.
I've tried Netscape, Mosaic, Doom, html editors...no luck.

when I try to unzip anything downloaded via linux command-line FTP or
Windoze, it either gives me a "invalid compressed data-format violated"
error, or a "CRC error." The only 2 things I've gotten to uncompress
successfully was a small package of X-icons, and - ironically enough - gzip
binaries (which didn't change anything).

I've tried different files from different sites - there's no way all these
files could be corrupt on the server.  Please - someone tell me they can
help!

If I had any money, I'd offer a reward...then again, I might use a
commercial OS!

Thanks in advance.
Neal

 
 
 

bad, bad, gzip!

Post by G&S Heber » Thu, 23 Oct 1997 04:00:00


After conecting to the ftp site you should issue the command binary.


>I'm a relative newbie, and am growing beyond the distribution installation.
> I'm ready to enter the realm of installing new software...

>My problem is that virtually NOTHING will unzip! I've elicited answers from
>friends and other newsgroups, but I can't seem to get anything to work.
>I've tried Netscape, Mosaic, Doom, html editors...no luck.

>when I try to unzip anything downloaded via linux command-line FTP or
>Windoze, it either gives me a "invalid compressed data-format violated"
>error, or a "CRC error." The only 2 things I've gotten to uncompress
>successfully was a small package of X-icons, and - ironically enough - gzip
>binaries (which didn't change anything).

>I've tried different files from different sites - there's no way all these
>files could be corrupt on the server.  Please - someone tell me they can
>help!

>If I had any money, I'd offer a reward...then again, I might use a
>commercial OS!

>Thanks in advance.
>Neal


 
 
 

bad, bad, gzip!

Post by Tony Schlemme » Fri, 24 Oct 1997 04:00:00


: I'm a relative newbie, and am growing beyond the distribution installation.
:  I'm ready to enter the realm of installing new software...

: My problem is that virtually NOTHING will unzip! I've elicited answers from
: friends and other newsgroups, but I can't seem to get anything to work.
: I've tried Netscape, Mosaic, Doom, html editors...no luck.

: when I try to unzip anything downloaded via linux command-line FTP or
: Windoze, it either gives me a "invalid compressed data-format violated"
: error, or a "CRC error." The only 2 things I've gotten to uncompress
: successfully was a small package of X-icons, and - ironically enough - gzip
: binaries (which didn't change anything).

: I've tried different files from different sites - there's no way all these
: files could be corrupt on the server.  Please - someone tell me they can
: help!

: If I had any money, I'd offer a reward...then again, I might use a
: commercial OS!

: Thanks in advance.
: Neal

When downloading gzip'ed files remember that they are "binary" files and
that need to set your FTP client so it will request binary mode when you
download the file. To do this from your command-line FTP program type
the word "binary" at the ftp> prompt. If you don't do this, the file
will be downloaded in ASCII mode which always corrupts it.

Tony

--
-----------------------------------------
Tony Schlemmer, Software Engineer
Objective Systems Integrators
Folsom, CA USA

-----------------------------------------

 
 
 

bad, bad, gzip!

Post by Andrey V Shyto » Fri, 24 Oct 1997 04:00:00



> My problem is that virtually NOTHING will unzip! I've elicited answers

May be, you did the transfer in ASCII mode?
It should be done in binary.
Say 'bin' to ftp after you connect to the site:

$ftp sunsite.unc.edu
Username: unanymous
Passowrd: blah-blah-blah
ftp> bin            
200 Type set to I
ftp> cd /pub/Linux/foo/bar
ftp> mget xyzzy.tar.gz
ftp> quit
$
$gunzip xyzzy.tar.gz

Sincerely,
Andrey.

 
 
 

bad, bad, gzip!

Post by Don Krau » Sat, 25 Oct 1997 04:00:00


Andrey V Shytov says...


> > My problem is that virtually NOTHING will unzip! I've elicited answers

> May be, you did the transfer in ASCII mode?
> It should be done in binary.
> Say 'bin' to ftp after you connect to the site:

> $ftp sunsite.unc.edu
> Username: unanymous
> Passowrd: blah-blah-blah
> ftp> bin            
> 200 Type set to I
> ftp> cd /pub/Linux/foo/bar
> ftp> mget xyzzy.tar.gz
> ftp> quit
> $
> $gunzip xyzzy.tar.gz

Lets not forget that there are commonly two different so-
called zip formats that are not compatible with each other.

*.gz files need gunzip, while unzip works on .zip files.
(not that the extensions are always correct)

--
=Don=

*****************************************************
This is for the spammers:



If you are clueless: Remove SPAM.SUCKS from my address.

"For millions of years, man lived just like the animals.
Then something happened which unleashed the power of our
imagination... We learned to talk"
*****************************************************

 
 
 

bad, bad, gzip!

Post by Robert Klemm » Sat, 25 Oct 1997 04:00:00



> I'm a relative newbie, and am growing beyond the distribution installation.
>  I'm ready to enter the realm of installing new software...

> My problem is that virtually NOTHING will unzip! I've elicited answers from
> friends and other newsgroups, but I can't seem to get anything to work.
> I've tried Netscape, Mosaic, Doom, html editors...no luck.

> when I try to unzip anything downloaded via linux command-line FTP or
> Windoze, it either gives me a "invalid compressed data-format violated"
> error, or a "CRC error." The only 2 things I've gotten to uncompress
> successfully was a small package of X-icons, and - ironically enough - gzip
> binaries (which didn't change anything).

> I've tried different files from different sites - there's no way all these
> files could be corrupt on the server.  Please - someone tell me they can
> help!

First of all: What files did you try to uncompress?  How did
you do the transfer?  ftp has a command 'bin', that sets binary
mode.  You need this, to get the files correct over to your site.
*.zip uncompresses with 'unzip'. *.tar.Z, *.tar.gz, *.taz and *.tgz
are uncompressed either with gnu-tar (use the 'z' switch) or
with 'zcat <file> | tar xf -'.

Bye

        robert

--

  Robert Klemme
    computer science and philosophy
      at University of Paderborn, Germany

 
 
 

bad, bad, gzip!

Post by Nenad Andjeli » Wed, 31 Dec 1997 04:00:00



> I'm a relative newbie, and am growing beyond the distribution installation.
>  I'm ready to enter the realm of installing new software...

> My problem is that virtually NOTHING will unzip! I've elicited answers from
> friends and other newsgroups, but I can't seem to get anything to work.
> I've tried Netscape, Mosaic, Doom, html editors...no luck.

> when I try to unzip anything downloaded via linux command-line FTP or
> Windoze, it either gives me a "invalid compressed data-format violated"
> error, or a "CRC error." The only 2 things I've gotten to uncompress
> successfully was a small package of X-icons, and - ironically enough - gzip
> binaries (which didn't change anything).

> I've tried different files from different sites - there's no way all these
> files could be corrupt on the server.  Please - someone tell me they can
> help!

> If I had any money, I'd offer a reward...then again, I might use a
> commercial OS!

> Thanks in advance.
> Neal

OK, this is most probably what you are doing wrong.  If you download
files using regular ftp client it will download them in ASCII format,
which will make files unusable.  What you have to do is type "bin" which
stands for binary on the command line of your ftp client before
downloading any files.  This should fix your problem.

Ned

 
 
 

bad, bad, gzip!

Post by Alexander Vi » Wed, 31 Dec 1997 04:00:00


Eh? unzip is for pkzip files. To unpack xxx.gz use "gzip -d xxx.gz" or
"gunzip xxx.gz". Gzip and PKZIP use different formats.
                                        Al

 
 
 

bad, bad, gzip!

Post by Mark Hea » Thu, 01 Jan 1998 04:00:00


: >
: > My problem is that virtually NOTHING will unzip! I've elicited answers from
: > friends and other newsgroups, but I can't seem to get anything to work.
: > I've tried Netscape, Mosaic, Doom, html editors...no luck.

Do you mean unzip or gunzip?

unzip is for zip files not for gzip files.

--
-- mark heath - Unix System Programmer/Engineer - Netspace Online Systems.  
-- http://www.netspace.net.au/                        [Personal /~mheath]
-- Linux:      The only software that fixes all the problems with Windows
:wq