LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-31-2009, 06:36 AM   #1
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 98

Rep: Reputation: 21
problem in extracting files


I am downloading .tgz files from the net, but when I try to extract them it gives me an error message

gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error exit delayed from previous errors

I don't know why this shows this error message,because when I try to extract the same files from windows it does it cleanly.

Please Help.
 
Old 08-31-2009, 06:40 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
What comand do you use to extract?
Code:
tar -xvzf foo.tgz
 
Old 08-31-2009, 06:41 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
Please post the exact command you've tried, along with the output from
Code:
file name_of_your_file.tgz
Edit: oops... too late!
 
Old 08-31-2009, 06:42 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
The trailing garbage message is just a warning and it's not the true problem. There must be some other error above that, it could be anywhere, even at the start of the process.
 
Old 09-01-2009, 10:15 AM   #5
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 98

Original Poster
Rep: Reputation: 21
rohit@rohit-laptop:~/Desktop$ tar -xvzf res5.tgz
Memory/
Memory/Misc/
Memory/Misc/params.osp
Memory/Misc/wgui.rdl
Memory/Demo.jar
Memory/PageFaultHandler.java
Memory/PageTableEntry.java
Memory/OSP.log
Memory/Makefile
Memory/FrameTableEntry.java
Memory/MMU.java
Memory/OSP.jar
Memory/PageTable.java

gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error exit delayed from previous errors

rohit@rohit-laptop:~/Desktop$ file res5.tgz
res5.tgz: gzip compressed data, from Unix, last modified: Wed Aug 19 10:59:29 2009

These were the commands that I tried.
 
Old 09-01-2009, 10:23 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Try to do "gunzip res5.tgz". I want to see if it's gzip or tar which fails.
 
Old 09-02-2009, 12:37 PM   #7
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 98

Original Poster
Rep: Reputation: 21
gzip: res5.tgz: decompression OK, trailing garbage ignored
and then using
tar -xf res5.tar
it worked properly.
But I cannot understand the problem with tar -xvzf foo.tgz
Thanks a lot.
 
Old 09-02-2009, 12:45 PM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Ugh, it seems some really weird bug in tar.
 
  


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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
Extracting all files willz06jw Linux From Scratch 3 09-11-2008 01:26 AM
geting problem in extracting tar files p_garg Linux - Enterprise 1 09-29-2005 03:53 PM
hey geting problem in extracting tar files in version 4 p_garg Linux - Networking 1 09-29-2005 03:48 PM
Extracting files BriceM Linux - General 3 08-15-2003 04:00 PM


All times are GMT -5. The time now is 04:17 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