【已解决】LFS错误:The system has no mor

2023-06-24  本文已影响0人  佛分_知合

Linux From Scratch 进入chroot之后,执行下列命令:

expect -c "spawn ls"

错误提示:

spawn ls
The system has no more ptys. Ask your system administrator to create more.
    while executing
"spawn ls"

系统没有足够的pty。怎么解决呢?

退出chroot环境,执行下面的命令:

mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys

然后重新进入chroot,就可以了。

上一篇下一篇

猜你喜欢

热点阅读