lfs 10.1 | Entering the Chroot Environment | Ubuntu 20.04 | '/usr/bin/env’: Not a directory
by farhatb from LinuxQuestions.org on (#5FVDP)
Hello,
Host distribution: Ubuntu 20.04
LFS book version: 10.1
Section where the problem was encountered: 7.4. Entering the Chroot Environment
Error:
Code:root@farhat-pc:/mnt/lfs# chroot "$LFS" /usr/bin/env -i \
> 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': Not a directory$LFS/bin/usr/env:
Code:root@farhat-pc:/mnt/lfs# ls -lah usr/bin/env
-rwxr-xr-x 1 root root 265K mars 26 15:50 usr/bin/env'$LFS/usr/env' is a file file not a directory!!
I am sure that I have followed the two previous section 7.2 && 7.3
Any hint please?


Host distribution: Ubuntu 20.04
LFS book version: 10.1
Section where the problem was encountered: 7.4. Entering the Chroot Environment
Error:
Code:root@farhat-pc:/mnt/lfs# chroot "$LFS" /usr/bin/env -i \
> 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': Not a directory$LFS/bin/usr/env:
Code:root@farhat-pc:/mnt/lfs# ls -lah usr/bin/env
-rwxr-xr-x 1 root root 265K mars 26 15:50 usr/bin/env'$LFS/usr/env' is a file file not a directory!!
I am sure that I have followed the two previous section 7.2 && 7.3
Any hint please?