bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

sudo apt-get update

sudo apt-get install locales -y

sudo locale-gen en_US.UTF-8

sudo dpkg-reconfigure locales

sudo update-locale LC_ALL=en_US.UTF-8

 

#或者手动编辑

cat /etc/default/locale

#LANG="en_IN"(old locale)

#LANGUAGE="en_IN:en"(old setting)

LC_ALL=en_US.UTF-8

LANG=en_US.UTF-8

posted @ 2022-02-16 16:58  zhaoguanhao  阅读(1757)  评论(0编辑  收藏  举报