Locale Error in centos

后端 未结 3 1750
逝去的感伤
逝去的感伤 2021-01-30 14:42

Every time I login to my CentOS 6 server through SSH I get this error

Can anyone please explain what does that error mean & how to fix?

-bash: warnin         


        
相关标签:
3条回答
  • 2021-01-30 15:16

    I try yum reinstall glibc-common from there and @Seif Hatem's method.

    but it don not work.

    you can use try this.

    It works.

    export LANG=en_US.UTF-8
    export LC_CTYPE="en_US.UTF-8"
    export LC_NUMERIC="en_US.UTF-8"
    export LC_TIME="en_US.UTF-8"
    export LC_COLLATE="en_US.UTF-8"
    export LC_MONETARY="en_US.UTF-8"
    export LC_MESSAGES="en_US.UTF-8"
    export LC_PAPER="en_US.UTF-8"
    export LC_NAME="en_US.UTF-8"
    export LC_ADDRESS="en_US.UTF-8"
    export LC_TELEPHONE="en_US.UTF-8"
    export LC_MEASUREMENT="en_US.UTF-8"
    export LC_IDENTIFICATION="en_US.UTF-8"
    export LC_ALL=en_US.UTF-8
    

    https://github.com/2creatives/vagrant-centos/issues/7

    0 讨论(0)
  • 2021-01-30 15:20

    The Fix: Thanks for Millie Smith (https://stackoverflow.com/users/2850543/millie-smith) & http://linuxforums.org.uk/index.php?topic=10318.0

    Using root user through ssh

    Run these commands

    vi /etc/environment
    

    & add these lines:

    LANG=en_US.utf-8
    LC_ALL=en_US.utf-8
    
    0 讨论(0)
  • 2021-01-30 15:31

    Before connecting to the host via SSH, you can set LC_ALL to C, e.g.

    LC_ALL=C ssh user@example.com
    
    0 讨论(0)
提交回复
热议问题