Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem of prompting locale warning information when logging in Centos system

Shulou Source: shulou.com Published: 2022-06-01 02:00:45 11月13日 Update

This article mainly introduces how to solve the problem of locale warning information prompted by the system when logging into the Centos system. The article is very detailed and has a certain reference value. Interested friends must read it!

[question]

Recently, when logging in to centos7.1, the system prompts warning information every time I log in.

Sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

Sh: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8)

Sh: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8)

Sh: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory

Sh: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)

Sh: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory

Sh: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)

Sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

Sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8

[solution]

# tee / etc/environment

Tags: System problem prompt information login article content command file UTF-8 generate login run value interest reason can pass region character boy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Xiaomi MariaDB Shulou Technology Shulou Information