My Ubuntu server shows tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968 when I try to run tmux. How can I fix it?
10,176
Solution 1
run this
apt install locales-all
Solution 2
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-8
in my/etc/locale.gen
file (previously none of the lines had been uncommented), then runninglocale-gen
.
Note: don't forget to sudo locale-gen
and not just locale-gen
.
Related videos on Youtube

Author by
Bangladesh 71
Updated on September 18, 2022Comments
-
Bangladesh 71 9 months
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? -
Admin about 1 yearCame here because I was trying to run
overmind start
(which usestmux
but does an internal check fortmux -V
first) and getting the errorovermind: Can't find tmux. Did you forget to install it?
. Running the above fixedtmux
which fixedovermind
. Happy days!