Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SimonSun1988/2ef7db45e46b889783647d941ec15e4d to your computer and use it in GitHub Desktop.
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`
加入
`LC_ALL="en_US.UTF-8"`
然後我就會重新啟動 server,基本上就不會有錯誤了
@YamiOdymel
Copy link

我好愛你

@IceBotYT
Copy link

Thanks! This worked 🎉

@elbehary01
Copy link

Perfect Thanks!

@clonn
Copy link

clonn commented Jul 22, 2021

da da help me a lot, thanks

@KopperKuma
Copy link

解決!謝謝!

@Alhamou
Copy link

Alhamou commented Jun 16, 2022

thanks :D

@XuNing2
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