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 commented Aug 14, 2017

solved my problem

@AlexFlipnote

This comment has been minimized.

Copy link

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.

@DreamWater

This comment has been minimized.

Copy link

DreamWater commented Oct 20, 2017

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

@vaseppi

This comment has been minimized.

Copy link

vaseppi commented Dec 1, 2017

solved my problem,,
Thankyou

@virak

This comment has been minimized.

Copy link

virak commented Dec 5, 2017

Thanks for the solution

@xumar-cc

This comment has been minimized.

Copy link

xumar-cc commented Dec 16, 2017

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

@suiwenfeng

This comment has been minimized.

Copy link

suiwenfeng commented Dec 18, 2017

Thanks

@devendrap

This comment has been minimized.

Copy link

devendrap commented Dec 20, 2017

Worked for me for Fedora 27! Thanks!

@dswwsd

This comment has been minimized.

Copy link

dswwsd commented Jan 12, 2018

Thanks

@zxbin2000

This comment has been minimized.

Copy link

zxbin2000 commented Jan 13, 2018

Thanks for the solution.

@sashuk

This comment has been minimized.

Copy link

sashuk commented Jan 15, 2018

Thanks a lot!

@jraphael

This comment has been minimized.

Copy link

jraphael commented Feb 13, 2018

Thanks!

@EdgarOrtegaRamirez

This comment has been minimized.

Copy link

EdgarOrtegaRamirez commented Feb 22, 2018

Also works on Amazon Linux 2 AMI 🥇

@josephztar

This comment has been minimized.

Copy link

josephztar commented Feb 27, 2018

thanks brother, it also works ubuntu 16.04 LTS :)

@gyustorm

This comment has been minimized.

Copy link

gyustorm commented Mar 7, 2018

Thanks!

@tvthu

This comment has been minimized.

Copy link

tvthu commented Mar 15, 2018

Thanks bro! also work on centos 7.

@PeterMu

This comment has been minimized.

Copy link

PeterMu commented Mar 29, 2018

perfect! thx!

@igordeoliveirasa

This comment has been minimized.

Copy link

igordeoliveirasa commented Apr 2, 2018

thank you!

@xckon

This comment has been minimized.

Copy link

xckon commented Apr 6, 2018

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

@lahirisan

This comment has been minimized.

Copy link

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 commented Jun 3, 2018

Thank you!

@blacklee

This comment has been minimized.

Copy link

blacklee commented Jun 21, 2018

thank you!

@embasbm

This comment has been minimized.

Copy link

embasbm commented Jul 8, 2018

Thank you 👏 👏

@vbahtev

This comment has been minimized.

Copy link

vbahtev commented Jul 16, 2018

thank you!

@AnyLight

This comment has been minimized.

Copy link

AnyLight commented Jul 24, 2018

Thank you!

@JonasAi

This comment has been minimized.

Copy link

JonasAi commented Jul 31, 2018

Thanks for sharing

@igordelorenzi

This comment has been minimized.

Copy link

igordelorenzi commented Aug 10, 2018

Thanks from Brazil

@hitfire

This comment has been minimized.

Copy link

hitfire commented Aug 14, 2018

Pefec! Thanks for sharing!

@BolaNasr

This comment has been minimized.

Copy link

BolaNasr commented Aug 15, 2018

Perfect..Thank you

@charliechung

This comment has been minimized.

Copy link

charliechung commented Aug 19, 2018

thanks

@f4b10h3nr1qu3

This comment has been minimized.

Copy link

f4b10h3nr1qu3 commented Aug 26, 2018

Thanks!

@avlaanderen

This comment has been minimized.

Copy link

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 commented Sep 20, 2018

Exactly it. Thx.

@puzzledvacuum

This comment has been minimized.

Copy link

puzzledvacuum commented Sep 28, 2018

Like a charm!

@wqhyw

This comment has been minimized.

Copy link

wqhyw commented Oct 8, 2018

Great! Problem solved! Thx!!! 👍

@whizzalan

This comment has been minimized.

Copy link

whizzalan commented Oct 19, 2018

Thanks a lot.

@n0vat0r

This comment has been minimized.

Copy link

n0vat0r commented Oct 24, 2018

Thank you!

@judavi

This comment has been minimized.

Copy link

judavi commented Oct 24, 2018

Working on CentOS 7.5 thanks!

@vladtzaharia

This comment has been minimized.

Copy link

vladtzaharia commented Nov 12, 2018

thanks !

@hathehuyen

This comment has been minimized.

Copy link

hathehuyen commented Nov 29, 2018

Thank you!

@sunwoo9517

This comment has been minimized.

Copy link

sunwoo9517 commented Dec 27, 2018

thanks!

@pathaksa

This comment has been minimized.

Copy link

pathaksa commented Dec 27, 2018

worked mate

@Santosh-Sah

This comment has been minimized.

Copy link

Santosh-Sah commented Jan 11, 2019

Thanks a lot

@tinotuno

This comment has been minimized.

Copy link

tinotuno commented Feb 14, 2019

Thanks. Worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.