尝试启动屏幕时“不再有 PTY”

Att*_* O. 12 display byobu

当我尝试启动 'screen' 或 'byobu' 时,我收到以下错误消息:

$ screen
No more PTYs.
Sorry, could not find a PTY.
[screen is terminating]
Run Code Online (Sandbox Code Playgroud)

不过我似乎已经足够了:

$ ls /dev/pts  
$ cat /proc/sys/kernel/pty/nr
0
$ cat /proc/sys/kernel/pty/max
4096
Run Code Online (Sandbox Code Playgroud)

更多信息:

$ uname -a
Linux cube.mydedi.net 2.6.18-194.8.1.el5.028stab070.5 #1 SMP Fri Sep 17 19:10:36 MSD 2010 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

如果您需要更多信息,请发表评论。这是在低端 VPS 上,但它曾经工作得很好,直到它停止工作。不过其他一切似乎都很好。

use*_*686 10

具有零 ptys 是不寻常的,因为您正在使用的 SSH 连接已经分配了 pty。

确保您已devpts安装:

$ grep /dev/pts /proc/mounts
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
Run Code Online (Sandbox Code Playgroud)

如果不是:

# mount devpts /dev/pts -t devpts -o mode=620
Run Code Online (Sandbox Code Playgroud)