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 07-21-2004, 08:49 PM   #1
fabio_listas
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
tar error - 'Child returned status 1'


hi!

I am trying to unzip an .tar.gz file, so, take a look at my steps

root@lisa:~# gzip -d xxxxxx.x.x.tar.gz
root@lisa:~# tar -zxvf xxxxxx.x.x.tar

them, I had an error msg (is this an error?)

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

help!
 
Old 07-21-2004, 09:13 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
You used "tar -zxvf" for the second command. the 'z' option tells tar to use gzip to uncompress the file. Since you already uncompressed it in the first command, gzip doesn't know what to do with it, and it consequently croaks. Tar stops because gzip encountered a problem. So, with the file you have now, you would extract it with:
tar -xvf xxxxxx.x.x.tar

I would go back and re-gzip the tar file though (to save space):
gzip xxxxxx.x.x.tar
tar -zxvf xxxxxx.x.x.tar.gz
 
Old 07-21-2004, 09:13 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
The first step uncompresses the tar ball.
In the second step, tar is expecting a compressed tar ball (.tar.gz).

You can either do:
Code:
tar -xvf fileName.tar
for an uncompressed tar ball
or
Code:
tar -xzvf fileName.tar.gz
for a compressed tar ball, as the z switch uncompresses the tar ball using gzip.

I hope this helps
--Ian
 
Old 07-21-2004, 10:12 PM   #4
fabio_listas
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Original Poster
Rep: Reputation: 0
thanks!

well, the idea of merge two kinds of uncompress a file is a little bit confuse to me, but I understood the answers!
I will try it! thanks!
 
Old 09-08-2004, 06:11 PM   #5
xinelo
LQ Newbie
 
Registered: Dec 2003
Location: Galiza
Posts: 13

Rep: Reputation: 0
Thanks for your replies to fabio_listas' question, they helped me too I will try them and see if they work for me.

However my question relates to a related yet different thing.

Dark Helmet said:

tar -zxvf file.tar.gz

and IBall said

tar -xzvf file.tar.gz

I would like to know whether the order of instructions is important or whether the command has a differnet meaning depending on the combination of the letters.

Thanks a lot, xinelo
 
Old 09-08-2004, 07:46 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Nope. The order of options on the command line doesn't matter. Don't think of them as "instructions" per se, but as switches. You're telling the program how to operate; not giving it an explicit sequence of steps to take.

The examples above are equivalent to:
Code:
tar -z -x -v -f filename.tar
The only thing that you must do is specify the filename immediately after the "f" option; that is a requirement of the option itself.
 
Old 09-12-2004, 09:46 AM   #7
xinelo
LQ Newbie
 
Registered: Dec 2003
Location: Galiza
Posts: 13

Rep: Reputation: 0
thanks

ok. thanks a lot!
 
Old 01-16-2011, 12:47 AM   #8
flymz
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
Talking

By reading it,my problem is also solved! Thanks.
 
Old 01-16-2011, 04:16 AM   #9
ashish_neekhra
Member
 
Registered: Nov 2007
Posts: 67

Rep: Reputation: 4
See this.

Hope it'll help you.
 
  


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
ld: cannot find -lc collect2: ld returned 1 exit status ArbuZz Linux From Scratch 3 09-27-2005 12:52 AM
Error: Child termintated with 1 status JBWhitley Ubuntu 1 03-30-2005 09:36 AM
collect2: ld returned 1 exit status abirami Linux - Software 0 03-02-2005 01:07 AM
konstruct error collect2: ld returned 1 exit status X2O Linux - Software 2 08-11-2004 08:48 PM
popa3d collect2: ld returned 1 exit status datapunk Linux - Software 1 01-02-2004 06:48 PM


All times are GMT -5. The time now is 06:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration