Skip to content

Instantly share code, notes, and snippets.

  • Star 36 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save SimonSun1988/2ef7db45e46b889783647d941ec15e4d 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`
然後我就會重新啟動 server,基本上就不會有錯誤了
Copy link


Copy link


Copy link

ealipio commented Feb 4, 2019


Copy link

yibhou commented Apr 15, 2019


Copy link

ekam230 commented Jun 30, 2019

Work for me

Copy link

simple enough to make it work!

Copy link

warjiang commented Jul 9, 2020


Copy link

WLyKan commented Jan 25, 2021


Copy link


Copy link

Thanks! This worked 🎉

Copy link

Perfect Thanks!

Copy link

clonn commented Jul 22, 2021

da da help me a lot, thanks

Copy link


Copy link

Alhamou commented Jun 16, 2022

thanks :D

Copy link

XuNing2 commented Oct 10, 2023

谢谢解决我安装nvm后报 ·manpath: can't set the locale; make sure $LC_* and $LANG are correct 的问题。

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