[Bug Report] 求助,deepin25.1 系统,中文都变化为方块 Resolved
Tofloor
poster avatar
139******33
deepin
2026-01-13 14:58
Author

系统版本是25.0.10,安装了一个叫master pdf的软件后(不确定是不是跟这个有关系),系统的中文显示出现了问题,求助如何能解决此问题

20260113145434.png

Reply Favorite View the author
All Replies
139******33
deepin
2026-01-13 15:04
#1

浏览器内部显示中文是没问题的,好像是系统的字体显示出现了问题

314.png

Reply View the author
deepin流云
Super Moderator
Community OP
2026-01-13 15:30
#2

看起来是之前执行过autoremove之类的把系统字体干掉了,用下面的命令把系统字体装回来试试:

sudo apt update && sudo apt reinstall fonts-adobe-source-han-cjk fonts-cantarell fonts-dejavu-core fonts-dejavu-extra fonts-firacode fonts-freefont-ttf fonts-gb fonts-gb-fs fonts-gb-ht fonts-gb-kt fonts-gb-st fonts-gb-st-super fonts-gb-xbs fonts-hack fonts-liberation fonts-lmodern fonts-lohit-deva fonts-macau fonts-mathjax fonts-noto fonts-noto-cjk fonts-noto-color-emoji fonts-noto-core fonts-noto-mono fonts-noto-unhinted fonts-open-sans fonts-opensymbol fonts-symbola fonts-unifont fonts-urw-base35 fonts-wqy-microhei fonts-wqy-zenhei
Reply View the author
139******33
deepin
2026-01-13 15:47
#3

感谢版主,正在下载,速度有点慢
543.png

Reply View the author
139******33
deepin
2026-01-13 15:51
#4
deepin流云

看起来是之前执行过autoremove之类的把系统字体干掉了,用下面的命令把系统字体装回来试试:

sudo apt update && sudo apt reinstall fonts-adobe-source-han-cjk fonts-cantarell fonts-dejavu-core fonts-dejavu-extra fonts-firacode fonts-freefont-ttf fonts-gb fonts-gb-fs fonts-gb-ht fonts-gb-kt fonts-gb-st fonts-gb-st-super fonts-gb-xbs fonts-hack fonts-liberation fonts-lmodern fonts-lohit-deva fonts-macau fonts-mathjax fonts-noto fonts-noto-cjk fonts-noto-color-emoji fonts-noto-core fonts-noto-mono fonts-noto-unhinted fonts-open-sans fonts-opensymbol fonts-symbola fonts-unifont fonts-urw-base35 fonts-wqy-microhei fonts-wqy-zenhei

感谢版主,中文显示已经恢复正常了

Reply View the author
momo
deepin
2026-01-13 16:21
#5

25.1??发布了吗

Reply View the author
139******33
deepin
2026-01-13 16:23
#6

没有发布,搞错了,已经修改

Reply View the author
北冥夜未央
deepin
Ecological co-builder
2026-01-13 19:30
#7
deepin流云

看起来是之前执行过autoremove之类的把系统字体干掉了,用下面的命令把系统字体装回来试试:

sudo apt update && sudo apt reinstall fonts-adobe-source-han-cjk fonts-cantarell fonts-dejavu-core fonts-dejavu-extra fonts-firacode fonts-freefont-ttf fonts-gb fonts-gb-fs fonts-gb-ht fonts-gb-kt fonts-gb-st fonts-gb-st-super fonts-gb-xbs fonts-hack fonts-liberation fonts-lmodern fonts-lohit-deva fonts-macau fonts-mathjax fonts-noto fonts-noto-cjk fonts-noto-color-emoji fonts-noto-core fonts-noto-mono fonts-noto-unhinted fonts-open-sans fonts-opensymbol fonts-symbola fonts-unifont fonts-urw-base35 fonts-wqy-microhei fonts-wqy-zenhei

最近flatpak安装的KiCad、krita、Clementine软件,字体都显示成方块了,大佬知道怎么解决么?

Reply View the author
deepin流云
Super Moderator
Community OP
2026-01-14 09:26
#8
北冥夜未央

最近flatpak安装的KiCad、krita、Clementine软件,字体都显示成方块了,大佬知道怎么解决么?

flatpak的还真不清楚,看豆包的回复,它用的是共享系统字体的机制通过 /run/host/fonts只读映射主机的 /usr/share/fonts~/.local/share/fonts等目录,这是主要字体来源。你按照上面的方法先把字体重装修复一遍试试:

彻底重建主机字体缓存并验证:

# 清除系统与用户缓存
sudo rm -rf /var/cache/fontconfig/ ~/.cache/fontconfig/
# 强制更新缓存
fc-cache -fv
# 检查是否有中文字体
fc-list :lang=zh
Reply View the author