Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shrekuu/01a9676d412e1b26df81e2b433a9dbb8 to your computer and use it in GitHub Desktop.
Save shrekuu/01a9676d412e1b26df81e2b433a9dbb8 to your computer and use it in GitHub Desktop.
解決 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,基本上就不會有錯誤了
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment