Link to home
Start Free TrialLog in
Avatar of sumanth_ora
sumanth_ora

asked on

gzip: stdin: invalid compressed data--crc error

I am trying to open file and i am getting the following error. could you please advise

$ tar xvfz examples.tar.gz
ch01_hello
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers

gzip: stdin: invalid compressed data--crc error

gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error exit delayed from previous errors
Avatar of farzanj
farzanj
Flag of Canada image

Appears that the file is corrupt.

Please issue the following as well

tar tvf example.tar.gz

See what you get

You can also try with

tar tvfz example.tar.gz

But I think the tar archive is corrupted
Another thing.

Please try this
gzip -d file.tar.gz
and then do
tar -xf file.tar
Avatar of sumanth_ora
sumanth_ora

ASKER

No Luck
$ gzip -d examples.tar.gz

gzip: examples.tar.gz: invalid compressed data--crc error

gzip: examples.tar.gz: invalid compressed data--length error
$ tar tvf examples.tar.gz
-rw-rw-r-- ellen/ora      1769 1997-11-18 16:17:12 ch01_hello
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers

gzip: stdin: invalid compressed data--crc error

gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error exit delayed from previous errors
$ tar tvfg examples.tar.gz
tar: Old option `g' requires an argument.
Try `tar --help' or `tar --usage' for more information.
$ tar tvfz examples.tar.gz
-rw-rw-r-- ellen/ora      1769 1997-11-18 16:17:12 ch01_hello
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers

gzip: stdin: invalid compressed data--crc error

gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error exit delayed from previous errors
ASKER CERTIFIED SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My file appears to be corrected
What steps did you follow to correct it, Sumanth?