My VPS is NAT. It shows tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968 when I try to run tmux command. How can I fix it?
- 181
- 1
- 2
- 5
-
And your question is...? – Aug 19 '17 at 21:24
-
@MichaelBay sorry. Edited it – Bangladesh 71 Aug 19 '17 at 21:26
3 Answers
run this
apt install locales-all
- 856
-
1Came here because I was trying to run
overmind start(which usestmuxbut does an internal check fortmux -Vfirst) and getting the errorovermind: Can't find tmux. Did you forget to install it?. Running the above fixedtmuxwhich fixedovermind. Happy days! – teaforchris May 04 '22 at 14:25
See Hitechcomputergeek's answer Updated my arch linux server and now I get tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968 - Unix & Linux Stack Exchange.
The same exact thing happened to me. Building on what Thomas said above, I was able to fix it by uncommenting
en_US.UTF-8 UTF-8in my/etc/locale.genfile (previously none of the lines had been uncommented), then runninglocale-gen.
Note: don't forget to sudo locale-gen and not just locale-gen.
- 151
I know it's an old question, but Something I was trying to solve myself on tinycore kernel.
tinycore does not have locale-gen or other binaries to generate the UTF-8 locale files.
So I copied /usr/lib/locale/C.UTF-8 from my local archlinux laptop to the tinycore (I had to create locale directory in /usr/lib) now the tmux is firing up with the UTF-8 I patched up.
- 2,945
- 5
- 17
- 26
- 1