Skip to content

Instantly share code, notes, and snippets.

@ibrahimlawal
Forked from jampajeen/LC_CTYPE.txt
Created February 27, 2017 07:02
Show Gist options
  • Select an option

  • Save ibrahimlawal/bfec7092cb64d46d8f9d1fd2c0c3d9c8 to your computer and use it in GitHub Desktop.

Select an option

Save ibrahimlawal/bfec7092cb64d46d8f9d1fd2c0c3d9c8 to your computer and use it in GitHub Desktop.
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@bhavyabapna

Copy link
Copy Markdown

Thx a lot 👍

@rdoerga

rdoerga commented May 9, 2019

Copy link
Copy Markdown

Thanks a million!!!!!

@HakanIST

Copy link
Copy Markdown

Thanks.

@emekaorjiani

Copy link
Copy Markdown

Amazing, just like that!

@yujintang

Copy link
Copy Markdown

tks

@nguyenvq

Copy link
Copy Markdown

Thanks from Vietnam.

@mercutiodesign

Copy link
Copy Markdown

Still relevant int 2019. Thanks

@spalacios-oro

Copy link
Copy Markdown

Thanks!!!

@avishayp

avishayp commented Feb 2, 2020

Copy link
Copy Markdown

@at-tantv

at-tantv commented Mar 1, 2020

Copy link
Copy Markdown

Thanks perfect

@koienergyspa

Copy link
Copy Markdown

Gracias!

@Karthick-DevOps

Copy link
Copy Markdown

Hello All,
Am facing same error . But what is the significance of this error.

Appreciate the help.

@yujintang

Copy link
Copy Markdown

Hello All,
Am facing same error . But what is the significance of this error.

Appreciate the help.

Install tzdata first

@littlewine

Copy link
Copy Markdown

What's the alternative if we cannot write (no admin permissions) on /etc/environment ?

@sgupta

sgupta commented Nov 24, 2020

Copy link
Copy Markdown

Thanks. small but helpful

@harry-sallinggroup

Copy link
Copy Markdown

ty

@rajaseelan

Copy link
Copy Markdown

2021, and still working :)

@ybrdev

ybrdev commented Feb 3, 2021

Copy link
Copy Markdown

Thank you!

@yassinelachgar

Copy link
Copy Markdown

Thank you

by Rabii

@worp1900

Copy link
Copy Markdown

Cheers m8, works like a charm!

@javad87

javad87 commented Nov 9, 2022

Copy link
Copy Markdown

2022 and still works on Centos 7 :-) consider to restart terminal so that new locale set takes effect

@YevheniiPokhvalii

Copy link
Copy Markdown

Sometimes it can only be solved by installing glibc-langpack-en package.

@jbrahy

jbrahy commented Apr 19, 2024

Copy link
Copy Markdown

Thanks!

@mustefan

Copy link
Copy Markdown

Recently, my glibc-langpack-en got updated to version 2.40-21; at terminal login I get six times in a row the message -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory.
After applying the suggested fix, I get the message only three times. Yayy!
I am still trying to understand where those three are coming from and how to get rid of them. Any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment