LinuxQuestions.org
Review your favorite Linux distribution.
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 03-26-2021, 02:53 PM   #1
goldennuggets
Member
 
Registered: Feb 2003
Location: USA
Distribution: Kubuntu, Manjaro
Posts: 239

Rep: Reputation: 24
10.1 chroot issue with /usr/bin/env : No such file or directory


I've been working my way through 10.1
When it came time to chroot, I got the following error:
Code:
chroot "$LFS" /usr/bin/env HOME=/root TERM="$TERM" PS1='(lfs chroot) \u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login +h
chroot: failed to run command ‘/usr/bin/env’: No such file or directory
So, after some research, I finally came across this:
http://www.linuxfromscratch.org/lfs/...y-no-such-file
I ran the following command with the output:
Code:
readelf -l /mnt/lfs/usr/bin/env | grep interpreter
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
The FAQ doesn't really explain what needs done at this point, since mine does not point to "/tools/lib/ld-linux.so.2" and the FAQ says that it doesn't exist yet.

I'm confused and would appreciate a little help, clarification, and ideas on how to correct the issue.
 
Old 03-26-2021, 04:06 PM   #2
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Did you do: http://www.linuxfromscratch.org/lfs/...07/kernfs.html
Check echo $LFS and make sure there is actually something there.
 
Old 03-26-2021, 05:19 PM   #3
goldennuggets
Member
 
Registered: Feb 2003
Location: USA
Distribution: Kubuntu, Manjaro
Posts: 239

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by hendrickxm View Post
Did you do: http://www.linuxfromscratch.org/lfs/...07/kernfs.html
Check echo $LFS and make sure there is actually something there.
Yes, == /mnt/lfs/ as it should.
 
Old 03-28-2021, 12:50 PM   #4
goldennuggets
Member
 
Registered: Feb 2003
Location: USA
Distribution: Kubuntu, Manjaro
Posts: 239

Original Poster
Rep: Reputation: 24
Resolution

As was mentioned in this thread (posted after I posted this one), the issue was with symlinks not being made properly.
I've redone up to the chroot and it has worked thus far.
 
  


Reply

Tags
build, lfs, linux, linux from scratch



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
"bash: /usr/bin/git: No such file or directory " - why does bash look in /usr/bin babu198649 Linux - Newbie 9 04-24-2023 01:32 PM
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
RPM dependency failure: /usr/bin/env instead of /bin/env anoosh3000 Linux - Software 1 04-10-2009 05:34 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM

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

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