Linux "could not open default font 'fixed'."

刚刚碰到一个很奇怪的问题,忽然进不了X了,看提示是找不到字库的问题.

Linux "could not open default font 'fixed'."错误解决


不能进入Xwindow,错误如下:

log file:"/var/log/XFree86.o.log"
Using config file:"/etc/X11/XF86Config.
Warninging: font renderer for ".TTF" already registered at priority 10
Warninging: font renderer for ".TTC" already registered at priority 10
Could not init font path element unix /:7100 removing from list!
Fatal server error:
could not open default font 'fixed'.
XID: fatal ID error 104 (Connection reset by peer) on X server " :0.0"

 

解决:进入/etc/X11/XF86Config

emacs XF86Config 找到这里的内容:

section "Files"
......
FontPath "/usr/share/fonts/simsum "
FontPath "unix/:7100 " (就这两个FontPath)

然后用 # 把 FontPath "unix/:7100 " 注释掉重启OK。

原文地址:https://www.cnblogs.com/wangyuezhuiyi/p/2120633.html