LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-25-2024, 04:45 PM   #1
Lupi619
LQ Newbie
 
Registered: Apr 2024
Posts: 1

Rep: Reputation: 0
bash command not found in chroot


So I'm trying to build LFS 12.1 and recently ran into an issue where I must have messed up an install on Chapter 6. Initially when I was in the chroot shell I kept getting command not found for 'sed'. I must have messed up this install or accidentally skipped it. I only resolved this by reverting to a snapshot I had before this. Now that is resolved, I am currently on 8.5.1. Installation of Glibc and getting the same thing with the 'patch' command running 'patch -Np1 -i ../glibc-2.39-fhs-1.patch'. I resolved this by manually installing patch within the chroot shell. What is the proper way to reinstall this if it happens again and then reload the shell so it picks up the new installation? I am somewhat new to LFS but not sure how to go about properly resolving this.
 
Old 04-27-2024, 04:25 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,605
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Complicated fixes like manual installs out of sequence may work in the short term but you invariably run into the sand further down the line. I don't think there is any future in this particular build. In your place, I would clear the partition, except for /sources, and start again from Chapter 5.

Don't be downhearted; we've all had to do that sometimes and it's especially common on a first LFS build.
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
"Command not found" on my server? “bash: sudo: command not found”? MilesOfRoses Linux - Server 7 04-01-2016 09:19 AM
bash: chroot: command not found satimis Linux From Scratch 9 03-15-2010 08:38 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 03:57 AM

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

All times are GMT -5. The time now is 07:37 AM.

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