sudo apt update
sudo apt install language-pack-zh-hans
sudo update-locale LANG=zh_CN.UTF-8
sudo apt install fonts-wqy-zenhei
常见问题解决
- 执行
locale -a无zh_CN.utf8:手动生成 locale:sudo locale-gen zh_CN.UTF-8,再执行locale -a验证。 - 安装字体后仍乱码:优先安装更全面的
fonts-noto-cjk:sudo apt install fonts-noto-cjk,该字体对生僻字、多语言支持更好。
Categories:
系统运维