更新
sudo apt update && sudo apt upgrade
安装中文语言
安装中文语言包
sudo apt install language-pack-zh-hans
设置系统语言支持
sudo dpkg-reconfigure locales
安装字体管理工具
sudo apt install fontconfig
安装 Windows 字体
sudo vim /etc/fonts/local.conf
内容如下
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <dir>/mnt/c/Windows/Fonts</dir> </fontconfig>
刷新字体缓存
sudo fc-cache -f -v
至此Ubuntu中的中文内容已经可以正常显示而不是乱码了