[SOLVED] "Perl: warning: Setting locale failed". Locale not available.
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"Perl: warning: Setting locale failed". Locale not available.
I've tried the usual avenues (namely Google), but none of the solutions offered seem to work!
The problem in short is the following. Whenever I open my bash shell, I get the following annoying message:
Quote:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LANG = "en_KE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
I am running Debian 9 and I have installed all the locales. My own locale though (en_KE, for Kenya) is not among the available locales.
Any suggestions would be much appreciated!
Grepping for "en_KEN" in "/usr/share/i18n/SUPPORTED" returns no results.
Appending "export LANG=en_KE.UTF-8" to my .bashrc file gets rid of the "Setting locale failed" message, but only in the current tab.
i think you need to actually install some locales.
i think you can only use those that show up when you issue 'locale -a'. there's no english at all???
The solution in this case (on KDE) was as follows:
Go to KDE System Settings -> Regional Settings -> Formats. Change region from Kenya (en_KE) to United Kingdom (en_GB). No more perl setting locale failed warnings!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.