Ubuntu命令方式安装中文语言包

中文语言包:

language-pack-zh-hans 简体中文

language-pack-zh-hans-base

language-pack-zh-hant 繁体中文

language-pack-zh-hant-base

1.安装中文语言包

sudo apt-get install  language-pack-zh-han*
Bash

2.运行语言支持检查

sudo apt install $(check-language-support)

3.修改配置文件:

修改环境文件(环境变量(所有用户)):

vim /etc/profile
Bash

不修改原有内容,直接在原内容下面新开一行加入下列内容:

LC_ALL=zh_CN.UTF_8
LANG=zh_CN.UTF_8
Bash

4.重启

reboot
Bash

Related Posts