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 running locale-gen.

Note: don't forget to sudo locale-gen and not just locale-gen.

Share:
10,176

Related videos on Youtube

Bangladesh 71
Author by

Bangladesh 71

Updated on September 18, 2022

Comments

  • Bangladesh 71
    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
    Admin about 1 year
    Came here because I was trying to run overmind start (which uses tmux but does an internal check for tmux -V first) and getting the error overmind: Can't find tmux. Did you forget to install it?. Running the above fixed tmux which fixed overmind. Happy days!