LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-31-2002, 01:14 AM   #1
monkeyjiann
LQ Newbie
 
Registered: Jan 2002
Posts: 10

Rep: Reputation: 0
tar error


i get this error with trying to tar -zxvf


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



could someone tell me what this means?
thx in advance
 
Old 01-31-2002, 02:53 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Its fairly self explanitory.

> gzip: stdin: not in gzip format

Its not a gzipped file

> tar: Child returened status 1

This is the only tricky bit. Any exit status apart from "0" is "exited non-standardly, i.e. with an error".

> tar: Error exit delayed from previous errors

There was an error, lets stop here and let the user get the command right.
 
Old 01-31-2002, 03:06 AM   #3
elist
Member
 
Registered: Dec 2001
Location: MK - UK
Distribution: Mandrake
Posts: 94

Rep: Reputation: 15
Along the same lines, can you tell me why we can't do:
>tar -zxvf *.gz
to gunzip and untar all the tar.gz files in a directory?
 
Old 01-31-2002, 03:13 AM   #4
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Becuase that expands to

tar xvzf file.tar.gz otherfile.tar.gz

and tar only accepts one file as input.

Try:

for x in *.gz; do tar xvzf $x; done
 
Old 01-31-2002, 03:57 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the chances are that althuogh it's called .tar.gz it's only actually a tar file. Programmers sem to be getting lazy and not gzipping their files...
 
Old 01-31-2002, 05:42 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try running file <filename> and see if it can tell you what type of file it is.
 
Old 02-01-2002, 01:43 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Netscape unzips files when it downloads them but does not rename them


rename it to file.tar
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
getting error during "tar -xvzf filename.tar.gz" b0nd Linux - Newbie 11 04-23-2005 08:50 PM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 11:58 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:49 AM.

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
Open Source Consulting | Domain Registration