Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Every time I run yum install or yum update, I get

Failed to set locale, defaulting to C

and then other information.

How can I avoid getting this warning?

share|improve this question

migrated from stackoverflow.com Sep 2 '11 at 19:53

This question came from our site for professional and enthusiast programmers.

3 Answers 3

I put the following locale relating setting in /etc/bashrc (for all users, bash):

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8

then run:

source /etc/bashrc

or log off and log on.

share|improve this answer


yum reinstall glibc-common

and then make sure that no process is deleting the /usr/lib/locale/locale-archive.* files.

share|improve this answer
I tried this first and it helps for me (not checked the process) –  chro Jul 25 '14 at 19:29

You can try

export LANG=en_US

Or set it to something similar. If that resolves the issue for you, you can make it persistent by modifying the bash profile.

share|improve this answer
That didn't work for me. Any other suggestions –  ctilley79 Oct 12 '12 at 5:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.