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 06-27-2011, 02:23 AM   #1
sandhya_V_Maheshkumar
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
Error while Untarring a file.


tar: Error opening archive: Error reading 'AdminLog-25062011-1758.tar.gz': Is a directory --- This is the error that appears when i try untarring a file. Please suggest what could be possibly wrong and how can it be sorted.
 
Old 06-27-2011, 02:43 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,565

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Well it appears to be saying that you are trying to untar a directory. Does one exist with the same name as the file you are trying to process?
 
Old 06-27-2011, 03:56 AM   #3
sandhya_V_Maheshkumar
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Question Solved :O

No.. that was the only file with that name. The weirdest part is that it worked fine after two minutes
 
Old 06-27-2011, 08:01 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,565

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
What command did you submit for the extraction?
 
Old 06-27-2011, 11:19 PM   #5
sandhya_V_Maheshkumar
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
The Same one again!!.. tar -zxvf <filename> .. just that!!
 
Old 06-28-2011, 12:03 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,565

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
hmmm .... well I am guessing the archive is corrupt, but curiously I cannot find reference to the error message you have shown, ie 'Is a directory' does not appear to be valid error output (that I can find)
 
Old 06-28-2011, 01:16 AM   #7
lydiaXr
LQ Newbie
 
Registered: Jun 2011
Location: London
Distribution: FreeBSD, Ubuntu, Fedora
Posts: 15

Rep: Reputation: Disabled
As a note, in the future, you can try this:

file AdminLog-25062011-1758.tar.gz

That may give you some hints...
 
Old 06-28-2011, 02:04 AM   #8
sandhya_V_Maheshkumar
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks Grail and Lydia
 
Old 06-28-2011, 02:32 AM   #9
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,565

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
Thanks Grail and Lydia
Does this mean you found a solution? If so maybe you could let us all know so everyone gets an education.

Also, if SOLVED you will need to mark it as such.
 
Old 06-28-2011, 02:39 AM   #10
sandhya_V_Maheshkumar
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
NO..though the Command worked, I still did not understand that error. It was the same command, same file and no other changes made. The First time it throws and error and the next time it works just fine!!!
 
  


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
Script Syntax information untarring file. soupbone38 Programming 2 04-11-2009 06:38 PM
Error untarring file RexCoeus Linux - Newbie 2 07-28-2008 12:11 PM
archive file UID's after untarring nmolinos Linux - Software 2 04-13-2005 01:00 AM
An error in untarring a file ? gopikrish Linux - Software 2 08-20-2004 08:06 PM
Stupid question- Untarring a file? randon Linux - General 4 11-10-2003 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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