LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 12-19-2012, 07:42 PM   #1
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 65

Rep: Reputation: 0
LFS 7.1 Chapter 6.8 man pages, no tarball available


So, I'm going through the install process without any further issues, and then I arrive at 6.8, where I am supposed to install the man pages for the utilities and programs.

It seems that when I downloaded the tarballs from the wget list, for whatever reason, the download failed (or was somehow deleted) for the man pages tarball.

Now that I am in the chroot environment, with no wget to work with, is there a way to download this tarball so that I can install the package? I'm a bit afraid of leaving the chroot environment, since I have heard issues with people not being able to properly get back in, or somehow contaminate the LFS system.

Can you please advise if the best course of action is to leave the chroot jail (if so, how I would go about doing that, and get back in safely), download the package to the /mnt/lfs/sources directory, and then re-enter the chroot environment to install?

I've never used this chroot env, so any advice is appreciated!
 
Old 12-19-2012, 10:56 PM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 484

Rep: Reputation: 133Reputation: 133
You're doing all this in a terminal in the host. So can't you open another terminal, use the host to download the file to /mnt/lfs/sources, go back to your original terminal, and soldier on? I can only do this in my head here at the moment, but it's working in there.

P.S.: For next time, run md5sum on the md5sums file (found where you got the wget-list file) before starting. It's not only a good idea to verify the downloads, but it would have alerted you to the missing tarball.

P.P.S.: I usually have to exit from and return to the chroot environment while building LFS. I never had a problem. To exit: logout, umount the virtual filesystems, and umount $LFS. To return: export the LFS variable again, mount the partition at $LFS again, mount the virtual filesystems (see sections 6.2.2 & 6.2.3), and run the same chroot commands again for the chapter you were in. Those are slightly different for chapter 6 (see section 6.4) and 7 (see section 6.65).

Last edited by stoat; 12-20-2012 at 01:44 PM.
 
Old 12-19-2012, 11:03 PM   #3
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 65

Original Poster
Rep: Reputation: 0
Well, since I'm in the chroot environment, can I just "su" back to the original user? I'm not sure of the proper commands to leave the chroot and re-enter without messing anything up... If the commands in the book to enter the chroot will still apply for re-entering later, I can use those, but what about leaving? Is there anything I need to do before I simply su to my host user, or will that even work?
 
Old 12-19-2012, 11:21 PM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 484

Rep: Reputation: 133Reputation: 133
What I meant was to leave that terminal you're working in alone for a minute, open another terminal in the host, and download the file as your normal user in the host using the host's utilities. Once the file you need is in /mnt/lfs/sources, go back to the terminal you were working in and continue. Maybe I'm just sleepy or something and not thinking clearly. I certainly can't duplicate the situation and try it right now.
 
Old 12-20-2012, 02:07 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Sometimes, for whatever reason, a specific package cannot be downloaded from the site(s) mentioned in the book. If that is the case you can have a look here:

- LFS Packages

Individual package are available, but also a tarbal with all packages (and patches).

About the chrooted environment and leaving it: As stoat mentioned already, you don't have to leave. Use a second (third ...) terminal. If you do leave the chrooted environment (exit, ctrl-d) then chroot back into it once you're done. Do make sure you use the correct chroot command.
 
Old 12-20-2012, 08:51 AM   #6
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 65

Original Poster
Rep: Reputation: 0
Okay, perfect. I didn't realize that I could simply open up another terminal window, although I suppose it makes perfect sense.

Will try this tonight and press onwards.

Thanks again.
 
Old 12-20-2012, 07:01 PM   #7
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 65

Original Poster
Rep: Reputation: 0
I opened a new terminal window, downloaded the file (the URL in the wget list was bad, so I used the link above to get the file) and put it into the /mnt/lfs/sources directory, and proceeded with the build without issue. Thanks for all the help.

Now, I'm installing glibc--14.2 SBU!!!
 
Old 12-20-2012, 07:02 PM   #8
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 65

Original Poster
Rep: Reputation: 0
I opened a new terminal window, downloaded the file (the URL in the wget list was bad, so I used the link above to get the file) and put it into the /mnt/lfs/sources directory, and proceeded with the build without issue. Thanks for all the help.

Now, I'm installing glibc--14.2 SBU!!!
 
  


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
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 02:57 AM
[SOLVED] Problem with starting >chapter 6.8. Man-pages-3.32 < dersommerwind Linux From Scratch 6 10-03-2011 06:13 AM
[SOLVED] How To Gain Access For lfs User To Comply With 3rd Important Note in LFS Man., Sec. 5 gdawg Linux From Scratch 30 05-22-2011 12:53 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 07:30 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM


All times are GMT -5. The time now is 10:03 PM.

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