Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Rep:
Failed to set locale, defaulting to C
I just got fresh install of centos 64bit version,and i got that strange message every time when i do something with yum.
But with rpm there is even more problems:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "e_US"
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),
LANG = "e_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Operating system is CentOS Linux
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "e_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
I was installing webmin rpm and seems it's not working beacuse of this.
Any idea how to fix this?I saw somewhere how it need to be reinstalled glibc-common,so i did first rpm -e --nodeps glibc-common then yum install glibc-common but that didn't help,still same.
Any idea?
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Original Poster
Rep:
Quote:
Originally Posted by scottro11
Hrrm, this is odd. Ok, try this one. (And then I'll stop wasting your time.)
locale -a |grep US
See what comes up and try with something like en_US.utf8 and maybe even en_US.UTF8 or UTF-8.
lastly, see if there are available upgrades for yum, python, and rpm.
Does the error prevent yum from working?
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
es_US
es_US.iso88591
es_US.utf8
yi_US
yi_US.cp1255
yi_US.utf8
Yum and rpm works fine but it seems that error slowing down them.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Original Poster
Rep:
Quote:
Originally Posted by scottro11
Well, you could deal with the LANG issue by setting it in your .bash_profile.
export LANG=en_US
Sounds like locales are missing.
yum provides */locale
gives me glibc-common among other things. I"m a bit stuck.
Hrrm filesystem is another one, but I'm almost certain you'd have that installed.
I don't know, it does sound as if something got a bit broken. Maybe reinstalling perl? (That's a stab in the dark and probably a waste of time.)
Seems command export LANG=en_US works.Toobad when i was checking your post my brain was not function properly since it was late night and i didn't realized i was only need to type export LANG=en_US for making it work,which extended time spended on this problem for several hours until i checked this thread again.
Been there, done that, got the t-shirt AND the CD. It's like looking at a config file with a typo when you're tired. Look at it the next day, and it's "How the HECK could I have missed that?"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.