-
-
Save kxxoling/b3ac181b427c7cafbe88 to your computer and use it in GitHub Desktop.
perl: warning: Setting locale failed. | |
perl: warning: Please check that your locale settings: | |
LANGUAGE = (unset), | |
LC_ALL = (unset), | |
LANG = "en_US.utf8" | |
are supported and installed on your system. | |
perl: warning: Falling back to the standard locale ("C"). |
It works ! thanks.
thanks
Since I do not have administrator rights, it will be "Permission denied" when I try to run locale-gen en_US.UTF-8
.
I add these three lines to my shell and it works!
Thanks!!!
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
Help
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Also
dpkg-reconfigure locales command not found
Not solve the problam
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US.UTF-8",
LC_ALL = "en_US.UTF-8",
LC_ADDRESS = "en_IN.UTF-8",
LC_NAME = "en_IN.UTF-8",
LC_MONETARY = "en_IN.UTF-8",
LC_PAPER = "en_IN.UTF-8",
LC_IDENTIFICATION = "en_IN.UTF-8",
LC_TELEPHONE = "en_IN.UTF-8",
LC_MESSAGES = "en_IN.UTF-8",
LC_MEASUREMENT = "en_IN.UTF-8",
LC_CTYPE = "en_IN.UTF-8",
LC_TIME = "en_IN.UTF-8",
LC_COLLATE = "en_IN.UTF-8",
LC_NUMERIC = "en_IN.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
usage: vncserver
8 years later... WTF!!!
sudo apt install locales-all
- add this to /etc/environment
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
reload, if not work run this:
locale-gen en_US.UTF-8
dpkg-reconfigure locales
you can try this
export LC_ALL=C
after that run this again
locale-gen en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
Thank you