WSL Ubuntu 使用中文语言包
- 安装中文语言包
1 | sudo apt install language-pack-zh-hans |
- 安装字体,可以直接复制windows的
1 | sudo cp -r /mnt/c/Windows/Fonts /usr/share/fonts/windows |
- 安装字体管理工具fontconfig
1 | sudo apt install fontconfig |
- 重装Windows字体
1 | sudo apt-get install --reinstall ttf-mscorefonts-installer |
- 刷新字体缓存
1 | fc-cache -f -v |
- 运行
dpkg-reconfigure locales
1 | sudo dpkg-reconfigure locales |
- 选择en_US.UTF-8和zh_CN.UTF-8, 选择zh_CN.UTF-8为默认语言
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 凌烟小站!