跳轉到內容

3.安裝Debian中文包 / SSH中文亂碼

精選回覆

發表於

-----------------------

安裝Debian中文包

-----------------------

像是IPS論壇的 locale 是依賴 Linux 本身的中文包,才會顯示地區、國家、國旗

如果沒顯示,就需要安裝中文包

apt install locales

dpkg-reconfigure locales

進入 Configuring locales 畫面,點選你要安裝的語言包 (敲空白鍵)

在 Locales to be generated 選擇以下語言

預設就有英文

[*] en_US.UTF-8 UTF-8

1.png

點選你要安裝的語言包 (敲空白鍵)

[*] zh_CN.UTF-8 UTF-8

[*] zh_HK.UTF-8 UTF-8

[*] zh_SG.UTF-8 UTF-8

[*] zh_TW.UTF-8 UTF-8

2.png

最後按TAB鍵,移動到OK鍵,按下Enter鍵

接下來,在 Default locale for the system environment

選擇你Debian想換的中文介面選項,再按Enter鍵

3.png

安裝語言包的過程,應該會看到這個訊息

locales is already the newest version (2.36-9+deb12u10).

The following package was automatically installed and is no longer required:

python3-ntp

Use 'apt autoremove' to remove it.

4.png

所以移除它

apt autoremove python3-ntp

5.png

重開機

reboot

接下來,SSH登入,蠻多選項更改為中文介面

如果還是覺得英文介面比較能適應,也能改回英文的

dpkg-reconfigure locales

6.png

按TAB鍵,移動到確定鍵,再按Enter鍵

接下來,選擇 en_US.UTF-8,按Enter鍵

7.png

重開機

reboot

就能將SSH更換為英文介面

本文章最後於,由Jack編輯

建立帳號或登入後發表意見