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
sumanth_oraAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

farzanjCommented:
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
farzanjCommented:
Another thing.

Please try this
gzip -d file.tar.gz
and then do
tar -xf file.tar
sumanth_oraAuthor Commented:
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
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

farzanjCommented:
As I said before, it may be corrupted file.

Try gunzip

gunzip examples.tar.gz

Open in new window


Also try

 
gzip -cfd example.tar.gz

Open in new window

If that does not work too, you can try recovering some data by

zcat example.tar.gz

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sumanth_oraAuthor Commented:
My file appears to be corrected
tel2Commented:
What steps did you follow to correct it, Sumanth?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux OS Dev

From novice to tech pro — start learning today.