[SOLVED] LFS 7.1 Chapter 6.8 man pages, no tarball available
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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).
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?
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.
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:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.