LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 11-11-2003, 06:25 AM   #1
quintar_51
Member
 
Registered: Oct 2003
Location: Toronto
Distribution: Trying to install Gentoo 1.4
Posts: 37

Rep: Reputation: 15
Gentoo - Can't Extract Tar file


Hello. I know there's isn't a gentoo forum here, but maybe someone can help me out. I also posted this question on the gentoo forums and got no anwers.

I'm trying to install it from their 'live cd'. It's pretty much building it from scratch. I am following a tutorial, but on one step I get an error.

On the cd, there's a .tar.bz2 file that is supposed to be extracted. The command for it is tar -xvjpf /mnt/cdrom/stages/stage1-*.tar.bz2

However, when I type that, I get tar: ./bin/sync: Cannot open: No such file or directory ./bin/true

This goes on for every directory it's searching for..
 
Old 11-11-2003, 06:30 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
The * might be the problem. Command line expension is not one of tar's good points.

You could try this:

for THIS in `ls /mnt/cdrom/stages/stage1-*.tar.bz2`
do
tar -xvjpf $THIS
done
 
Old 11-11-2003, 06:38 AM   #3
quintar_51
Member
 
Registered: Oct 2003
Location: Toronto
Distribution: Trying to install Gentoo 1.4
Posts: 37

Original Poster
Rep: Reputation: 15
Unhappy

Thanks for the quick reply.

I tried typing tar -xvjpf with the full path and file name and I still got the same problem.

when I tried your suggestion, after typing for THIS in 'ls /mnt/cdrom/stages/stage1-*.tar.bz2; , I got a > . Then it didn't recognize any commands at all.
 
Old 11-11-2003, 07:23 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally posted by quintar_51
Thanks for the quick reply.

I tried typing tar -xvjpf with the full path and file name and I still got the same problem.
Strange. Next are (obvious??) suggestions:

- Does your tar have bz2 support (try bunzip2 and then use tar to extract the results),
- Is the path correct (/mnt/cdrom/stages),
- Are the files named correct.

Quote:

when I tried your suggestion, after typing for THIS in 'ls /mnt/cdrom/stages/stage1-*.tar.bz2; , I got a > . Then it didn't recognize any commands at all.
Did you type the ` (single backquote) at the end of the first command??

$ for THIS in `ls /mnt/cdrom/stages/stage1-*.tar.bz2` <enter>
> do <enter>
> tar -xvjpf $THIS <enter>
> done <enter>

But I do not think this will solve your problem because you mention trying one file with the tar -xvjpf command and getting the same error.
 
Old 11-11-2003, 07:32 AM   #5
quintar_51
Member
 
Registered: Oct 2003
Location: Toronto
Distribution: Trying to install Gentoo 1.4
Posts: 37

Original Poster
Rep: Reputation: 15
Talking

I managed to fix it...

I copied the file from the cd to the hard drive and then extracted it.

I hate stupid things like that... especially when I'm following a tutorial.

Anyways, thanks a lot for your help
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can not extract the tar.gz file sharad durgawad Linux - Software 3 10-05-2005 02:41 AM
Unable to extract "tar.gz" file - please try for me Riddick Linux - Software 6 08-27-2005 04:57 PM
How to extract a tar.gz file? deWin Linux - Newbie 3 11-10-2004 11:24 AM
Couldn't extract tar.gz file on Redhat 9 kbrams Linux - Newbie 6 10-06-2003 11:31 AM
extract and locating tar.gz file... zagreb Linux - Newbie 2 03-02-2003 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 02:50 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
Open Source Consulting | Domain Registration