使用 tty 时 tmux 不会启动 (ubuntu 11.10)
我在 https://stackoverflow.com/a/7410228/880040 遇到了类似的问题,并且要检查的第六件事,
确保您的终端功能文件存在:
ls -lh /usr/share/terminfo/*/$TERM
未通过。整个文件夹都是空的。从 ssh 会话启动 tmux 时,它会按预期工作。在 tty 会话中,它只是挂在 tmux 命令后面的换行符上。也不能用 ctrl-c 杀死它,必须 ssh 并杀死所有 tmux。
$TERM 是“linux” 操作系统是 Ubuntu 11.10(服务器版)32 位
不幸的是,上面的帖子没有解释如果 /usr/share/terminfo 为空该怎么办。
I went through this similar question at https://stackoverflow.com/a/7410228/880040 and the 6th thing to check,
Make that your terminal capabilities file exists:
ls -lh /usr/share/terminfo/*/$TERM
Is what doesn't pass. This entire folder is empty. tmux works as expected when starting it from a ssh session. On the tty session, it just hangs on a newline after the tmux command. Cannot kill it with ctrl-c either, have to ssh in and killall tmux.
$TERM is 'linux'
OS is Ubuntu 11.10 (server edition) 32 bit
Unfortunately the above post did not explain what to do if /usr/share/terminfo was empty.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Ubuntu 中,各种
terminfo
文件由ncurses-base
1 提供 - 您可能首先需要尝试重新安装以查看是否可以解决您的问题。如果这不起作用,您可以随时将工作的
terminfo
(从您使用 SSH 的盒子中)复制到您的 Ubuntu 计算机上。首先,确定您的 Ubuntu 机器上没有
linux
条目:然后,在您进行 SSH 的计算机上,复制
terminfo
:复制它使用
scp
到您的远程计算机,然后在远程计算机上安装它:您还应该考虑安装
screen-256color
,因为这是terminfo tmux 配合效果最佳。
1. http://packages.ubuntu.com/ko/natty/ncurses-base
In Ubuntu, the various
terminfo
files are provided byncurses-base
1 - you might first want to try reinstalling to see if that fixes your issue.If that doesn't work, you can always copy the working
terminfo
(from the box you are SSH'ing from) across to your Ubuntu machine.First, establish that you do not have an entry for
linux
on the Ubuntu box:Then, on the machine that you SSH from, make a copy of the
terminfo
:copy it to your remote machine with
scp
and then, on the remote machine, install it with:You should also consider installing
screen-256color
as this is theterminfo
tmux works best with.1. http://packages.ubuntu.com/ko/natty/ncurses-base