LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2011, 07:34 AM   #1
sathish_s
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Rep: Reputation: Disabled
.tgz file extration error


i am getting below error while extrating tgz file




[oracle@localhost export]$ tar -xvzf expdp_nic_wls_gs_tst_20110927.tgz
./expdp_nic_wls_gs_tst.dmp
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers


gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors



thanks in advance

sathish
 
Old 09-28-2011, 07:37 AM   #2
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Your file has probably been truncated, check the length of your file, and what length it should be. Also check your disk space, this is sometimes a cause of files getting truncated.
 
1 members found this post helpful.
Old 09-28-2011, 07:42 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
There are two different errors and I'm not sure if one is related to the other. Anyway, what if you try to uncompress the file, then extract the archive?
Code:
$ gzip -d expdp_nic_wls_gs_tst_20110927.tgz
$ tar -xvf expdp_nic_wls_gs_tst_20110927.tar
 
1 members found this post helpful.
Old 09-28-2011, 08:01 AM   #4
sathish_s
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
hi colucix

below was the error

[oracle@localhost export]$ gzip -d expdp_nic_wls_gs_tst_20110927.tgz

gzip: expdp_nic_wls_gs_tst_20110927.tgz: unexpected end of file



hi snooly

the server has enough space and file size is same




thanks and regards

sathish
 
Old 09-28-2011, 08:10 AM   #5
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
You can clearly see the unexpected end of file error, that is your problem. The file is truncated. If your file is the same as where you got it from, then the source file is truncated too. Try going to the other file and using the "t" switch to test the tar:

tar tvfz expdp_nic_wls_gs_tst_20110927.tgz

You will get the same error on both files, is my prediction. Check the disk space on where the source file is.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to convert a tar.gz-file to tgz-file ? Knasen Slackware 17 09-05-2006 05:44 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 04:15 AM
tgz file doesn't end in .tgz? detpenguin Slackware 4 05-15-2004 08:13 PM
[Discussion]compile error of adsl drive file xxx.src.tgz legendren Linux - Hardware 1 12-01-2003 09:14 AM
Starnge error when opening a tgz file wtih MC rmocius@auste.e Slackware 4 12-01-2003 03:10 AM


All times are GMT -5. The time now is 04:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration