当我尝试使用tab自动完成功能来完成 ssh(或 scp)命令时,控制台上出现以下错误:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)
这是按下的结果sshspacetabtab:
user@computer:~$ ssh -bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)
::1 computer ff02::1 ff02::2 ip6-allnodes
ip6-allrouters ip6-localhost ip6-loopback localhost
user@computer:~$ ssh _
当我使用 tab 自动补全任何其他命令时,不会显示此错误消息,只有 ssh 和 scp 才会显示(据我所知)。我最近才开始注意到这一点,但我不认为我更改了与语言环境相关的任何内容。我有几台 Ubuntu 14.4 机器出现这种情况。