Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
解決 Ubuntu "can’t set the locale; make sure $LC_* and $LANG are correct" 的錯誤
## 安裝語系檔
`$ sudo locale-gen "en_US.UTF-8"`
## 重新設定語系檔
`$ sudo dpkg-reconfigure locales`
## 設定檔
`$ vim /etc/default/locale`
加入
`LC_ALL="en_US.UTF-8"`
然後我就會重新啟動 server,基本上就不會有錯誤了
@merc1995

This comment has been minimized.

Copy link

@merc1995 merc1995 commented Jul 31, 2018

bralliant!

@adamswangg

This comment has been minimized.

Copy link

@adamswangg adamswangg commented Aug 30, 2018

brilliant!

@ealipio

This comment has been minimized.

Copy link

@ealipio ealipio commented Feb 4, 2019

awesome!

@yibhou

This comment has been minimized.

Copy link

@yibhou yibhou commented Apr 15, 2019

perfect!

@ekam230

This comment has been minimized.

Copy link

@ekam230 ekam230 commented Jun 30, 2019

Work for me

@pengisgood

This comment has been minimized.

Copy link

@pengisgood pengisgood commented Jul 29, 2019

simple enough to make it work!

@warjiang

This comment has been minimized.

Copy link

@warjiang warjiang commented Jul 9, 2020

thanks

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.