问题描述
在Windows上在Ubuntu上安装猛砸之后,我收到来自任何 rlwrap
命令是错误的。
After installing Bash on Ubuntu on Windows, I'm receiving an error from any rlwrap
command.
root@localhost:~# rlwrap ls
rlwrap: Could not open master pty: No such file or directory
我做了肯定的/ dev / ptmx设置具有正确的权限
I've made sure that /dev/ptmx has the correct permissions
root@localhost:~# ls -ld /dev/ptmx
crw-rw-rw- 1 root tty 5, 2 Apr 9 22:44 /dev/ptmx
不过,我仍然不能得到它的工作。我是唯一一个遇到这个错误?任何帮助将大大AP preciated。
Yet I still can't get it working. Am I the only one encountering this error? Any help would be greatly appreciated.
推荐答案
(WSL)不(没?)有一个工作 PTY
的实施。我怀疑,打开的/ dev / ptmx设置
总是失败因为这个原因,即使设备文件存在并具有正确的权限。
Windows Subsystem for Linux (WSL) doesn't (yet?) have a working pty
implementation. I suspect that opening /dev/ptmx
always fails for this reason, even though the device file exists and has the right permissions.
rlwrap
,也像是屏幕
和 TMUX
,是永远不会没有 PTY
设备正常工作。他们没有下WSL出于同样的原因为 rlwrap
。
rlwrap
, but also programs like screen
and tmux
, are never going to work without a pty
device. They fail under WSL for the same reason as rlwrap
.
汉斯( rlwrap
维护者)
这篇关于巴什在Ubuntu在Windows - rlwrap无法打开主pty的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!