Forked from SimonSun1988/gist:2ef7db45e46b889783647d941ec15e4d
Created
September 11, 2018 02:35
-
-
Save danleyb2/00a3e099fc9292ffe617e6ee7bba78c7 to your computer and use it in GitHub Desktop.
解決 Ubuntu "can’t set the locale; make sure $LC_* and $LANG are correct" 的錯誤
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 安裝語系檔 | |
`$ sudo locale-gen "en_US.UTF-8"` | |
## 重新設定語系檔 | |
`$ sudo dpkg-reconfigure locales` | |
## 設定檔 | |
`$ vim /etc/default/locale` | |
加入 | |
`LC_ALL="en_US.UTF-8"` | |
然後我就會重新啟動 server,基本上就不會有錯誤了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment