Questions about "Creating Essential Files and Symlinks" and "Libstdc++ from GCC-10.2.0, Pass 2".
by n00b_noob from LinuxQuestions.org on (#5DK9K)
Hello,
I have two questions:
1- In "7.6. Creating Essential Files and Symlinks" I read "Some tests in Chapter 8 need a regular user. We add this user here and delete this account at the end of that chapter.", but I got below error:
Code:(lfs chroot) I have no name!:/# echo "tester:x:$(ls -n $(tty) | cut -d" " -f3):101::/home/tester:/bin/bash" >> /etc/passwd
ls: cannot access 'not': No such file or directory
ls: cannot access 'a': No such file or directory
ls: cannot access 'tty': No such file or directory2- In "7.7. Libstdc++ from GCC-10.2.0, Pass 2" I read "Libstdc++ is part of the GCC sources. You should first unpack the GCC tarball and change to the gcc-10.2.0 directory.", but I'm using "chroot" and can't access to "lfs-packages" files that I copied to "/mnt/LFS" directory!!!
How can I solve it?
Thank you.


I have two questions:
1- In "7.6. Creating Essential Files and Symlinks" I read "Some tests in Chapter 8 need a regular user. We add this user here and delete this account at the end of that chapter.", but I got below error:
Code:(lfs chroot) I have no name!:/# echo "tester:x:$(ls -n $(tty) | cut -d" " -f3):101::/home/tester:/bin/bash" >> /etc/passwd
ls: cannot access 'not': No such file or directory
ls: cannot access 'a': No such file or directory
ls: cannot access 'tty': No such file or directory2- In "7.7. Libstdc++ from GCC-10.2.0, Pass 2" I read "Libstdc++ is part of the GCC sources. You should first unpack the GCC tarball and change to the gcc-10.2.0 directory.", but I'm using "chroot" and can't access to "lfs-packages" files that I copied to "/mnt/LFS" directory!!!
How can I solve it?
Thank you.