Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Help solve - Centos Locale Failed Notification

ChalipaChalipa Veteran

hi,
I have a vps, and I get the following msg

--

Last login: Sun May 20 15:38:24 2018 from **
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

--

I have added this

LANGUAGE = "en_US:en",
LC_ALL = "en_US.UTF-8",
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"

in /etc/environment but I still get the same notification, can someone help how can I solve this?

Comments

  • FHRFHR Member, Host Rep

    Have you relogged to the server? I.e. disconnect from SSH and connect again.

  • angstromangstrom Moderator, Veteran

    @Chalipa said:
    I have added this

    LANGUAGE = "en_US:en",
    LC_ALL = "en_US.UTF-8",
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"

    in /etc/environment but I still get the same notification, can someone help how can I solve this?

    I don't think that the locales "en_US:en" and "UTF-8" exist (with these names) on any system. You can check to see which locales your system has with the command locale -a.

    I suspect that perl would be happy if you specified LC_CTYPE="en_US.UTF-8" in /etc/environment (no need for other specifications), but then make sure to log out and in again.

  • NanoG6NanoG6 Member

    Just delete any "LC" in your sshd config, restart sshd, and relogin

Sign In or Register to comment.