#編輯檔案 ,沒有的話新增檔案和目錄
sudo vi /var/lib/locales/supported.d/local
#加入以下
zh_TW.UTF-8 UTF-8
en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_TW BIG5
sudo dpkg-reconfigure locales
到控制台編輯 加入上列語言 並設定 zh_TW.UTF-8 為主要語言
————————————-
1140326
apt install locales -y
#加入語系 zh_TW.UTF-8
dpkg-reconfigure locales
#查看 目前語系
locale
#確保 LANG=zh_TW.UTF-8
#更改目前語系
export LANG=zh_TW.UTF-8
#追加到/etc/profile文件中,然后再使其生效
source /etc/profile