Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@zuo1188

This comment has been minimized.

Copy link

@zuo1188 zuo1188 commented Aug 14, 2017

solved my problem

@AlexFlipnote

This comment has been minimized.

Copy link

@AlexFlipnote AlexFlipnote commented Sep 4, 2017

I know that this is a 6 month old gist, but I wanted to thank you for this.
It solved my problem.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 20, 2017

Thanks for the solution. It troubles me too many times.

@vaseppi

This comment has been minimized.

Copy link

@vaseppi vaseppi commented Dec 1, 2017

solved my problem,,
Thankyou

@virak

This comment has been minimized.

Copy link

@virak virak commented Dec 5, 2017

Thanks for the solution

@xumar-cc

This comment has been minimized.

Copy link

@xumar-cc xumar-cc commented Dec 16, 2017

Thanks, solved the issue. Never thought its so simple.

@suiwenfeng

This comment has been minimized.

Copy link

@suiwenfeng suiwenfeng commented Dec 18, 2017

Thanks

@devendrap

This comment has been minimized.

Copy link

@devendrap devendrap commented Dec 20, 2017

Worked for me for Fedora 27! Thanks!

@dswwsd

This comment has been minimized.

Copy link

@dswwsd dswwsd commented Jan 12, 2018

Thanks

@zxbin2000

This comment has been minimized.

Copy link

@zxbin2000 zxbin2000 commented Jan 13, 2018

Thanks for the solution.

@sashuk

This comment has been minimized.

Copy link

@sashuk sashuk commented Jan 15, 2018

Thanks a lot!

@jraphael

This comment has been minimized.

Copy link

@jraphael jraphael commented Feb 13, 2018

Thanks!

@EdgarOrtegaRamirez

This comment has been minimized.

Copy link

@EdgarOrtegaRamirez EdgarOrtegaRamirez commented Feb 22, 2018

Also works on Amazon Linux 2 AMI 🥇

@yusufyildiz34

This comment has been minimized.

Copy link

@yusufyildiz34 yusufyildiz34 commented Feb 27, 2018

thanks brother, it also works ubuntu 16.04 LTS :)

@gyustorm

This comment has been minimized.

Copy link

@gyustorm gyustorm commented Mar 7, 2018

Thanks!

@tvthu

This comment has been minimized.

Copy link

@tvthu tvthu commented Mar 15, 2018

Thanks bro! also work on centos 7.

@PeterMu

This comment has been minimized.

Copy link

@PeterMu PeterMu commented Mar 29, 2018

perfect! thx!

@igordeoliveirasa

This comment has been minimized.

Copy link

@igordeoliveirasa igordeoliveirasa commented Apr 2, 2018

thank you!

@xckon

This comment has been minimized.

Copy link

@xckon xckon commented Apr 6, 2018

Works like a charm from AWS Linux AMI! Thanks! 👍

@lahirisan

This comment has been minimized.

Copy link

@lahirisan lahirisan commented May 7, 2018

Thanks! I could not make a deploy to centos server with rails-capistrano because of this warning.

@Songkeys

This comment has been minimized.

Copy link

@Songkeys Songkeys commented Jun 3, 2018

Thank you!

@blacklee

This comment has been minimized.

Copy link

@blacklee blacklee commented Jun 21, 2018

thank you!

@embasbm

This comment has been minimized.

Copy link

@embasbm embasbm commented Jul 8, 2018

Thank you 👏 👏

@vbahtev

This comment has been minimized.

Copy link

@vbahtev vbahtev commented Jul 16, 2018

thank you!

@AnyLight

This comment has been minimized.

Copy link

@AnyLight AnyLight commented Jul 24, 2018

Thank you!

@JonasAi

This comment has been minimized.

Copy link

@JonasAi JonasAi commented Jul 31, 2018

Thanks for sharing

@igordelorenzi

This comment has been minimized.

Copy link

@igordelorenzi igordelorenzi commented Aug 10, 2018

Thanks from Brazil

@hitfire

This comment has been minimized.

Copy link

@hitfire hitfire commented Aug 14, 2018

Pefec! Thanks for sharing!

@BolaNasr

This comment has been minimized.

Copy link

@BolaNasr BolaNasr commented Aug 15, 2018

Perfect..Thank you

@charliechung

This comment has been minimized.

Copy link

@charliechung charliechung commented Aug 19, 2018

thanks

@fabiohenriquebayma

This comment has been minimized.

Copy link

@fabiohenriquebayma fabiohenriquebayma commented Aug 26, 2018

Thanks!

@avlaanderen

This comment has been minimized.

Copy link

@avlaanderen avlaanderen commented Sep 19, 2018

Still valid @Sept19th 2018
Linux 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

@raulibanez

This comment has been minimized.

Copy link

@raulibanez raulibanez commented Sep 20, 2018

Exactly it. Thx.

@puzzledvacuum

This comment has been minimized.

Copy link

@puzzledvacuum puzzledvacuum commented Sep 28, 2018

Like a charm!

@wqhyw

This comment has been minimized.

Copy link

@wqhyw wqhyw commented Oct 8, 2018

Great! Problem solved! Thx!!! 👍

@whizzalan

This comment has been minimized.

Copy link

@whizzalan whizzalan commented Oct 19, 2018

Thanks a lot.

@n0vat0r

This comment has been minimized.

Copy link

@n0vat0r n0vat0r commented Oct 24, 2018

Thank you!

@judavi

This comment has been minimized.

Copy link

@judavi judavi commented Oct 24, 2018

Working on CentOS 7.5 thanks!

@vladtzaharia

This comment has been minimized.

Copy link

@vladtzaharia vladtzaharia commented Nov 12, 2018

thanks !

@hathehuyen

This comment has been minimized.

Copy link

@hathehuyen hathehuyen commented Nov 29, 2018

Thank you!

@merry-swjung

This comment has been minimized.

Copy link

@merry-swjung merry-swjung commented Dec 27, 2018

thanks!

@pathaksa

This comment has been minimized.

Copy link

@pathaksa pathaksa commented Dec 27, 2018

worked mate

@sant-sh

This comment has been minimized.

Copy link

@sant-sh sant-sh commented Jan 11, 2019

Thanks a lot

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Feb 14, 2019

Thanks. Worked perfectly.

@bhavyabapna

This comment has been minimized.

Copy link

@bhavyabapna bhavyabapna commented Mar 29, 2019

Thx a lot 👍

@rdoerga

This comment has been minimized.

Copy link

@rdoerga rdoerga commented May 9, 2019

Thanks a million!!!!!

@HakanIST

This comment has been minimized.

Copy link

@HakanIST HakanIST commented May 21, 2019

Thanks.

@emekaorjiani

This comment has been minimized.

Copy link

@emekaorjiani emekaorjiani commented Jun 30, 2019

Amazing, just like that!

@yujintang

This comment has been minimized.

Copy link

@yujintang yujintang commented Jul 18, 2019

tks

@nguyenvq

This comment has been minimized.

Copy link

@nguyenvq nguyenvq commented Aug 14, 2019

Thanks from Vietnam.

@mercutiodesign

This comment has been minimized.

Copy link

@mercutiodesign mercutiodesign commented Dec 11, 2019

Still relevant int 2019. Thanks

@spalacios-summa

This comment has been minimized.

Copy link

@spalacios-summa spalacios-summa commented Jan 28, 2020

Thanks!!!

@avishayp

This comment has been minimized.

@at-tantv

This comment has been minimized.

Copy link

@at-tantv at-tantv commented Mar 1, 2020

Thanks perfect

@koienergyspa

This comment has been minimized.

Copy link

@koienergyspa koienergyspa commented Mar 5, 2020

Gracias!

@Karthick-DevOps

This comment has been minimized.

Copy link

@Karthick-DevOps Karthick-DevOps commented Jun 11, 2020

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

Appreciate the help.

@yujintang

This comment has been minimized.

Copy link

@yujintang yujintang commented Jun 11, 2020

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

Appreciate the help.

Install tzdata first

@littlewine

This comment has been minimized.

Copy link

@littlewine littlewine commented Jun 18, 2020

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

@sgupta

This comment has been minimized.

Copy link

@sgupta sgupta commented Nov 24, 2020

Thanks. small but helpful

@harry-sallinggroup

This comment has been minimized.

Copy link

@harry-sallinggroup harry-sallinggroup commented Dec 1, 2020

ty

@rajaseelan

This comment has been minimized.

Copy link

@rajaseelan rajaseelan commented Jan 6, 2021

2021, and still working :)

@yusufbadurohman

This comment has been minimized.

Copy link

@yusufbadurohman yusufbadurohman commented Feb 3, 2021

Thank you!

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