How to solve the problem of prompting locale warning information when logging in Centos system
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