2008年(126)
分类: LINUX
2008-04-23 19:34:45
执行sudo fc-cache -fv发现出现各个字体文件夹"...fail to cache"的提示,重启后系统变得极其缓慢,使得系统无法使用。(据说升级字体包也可能造成同样的情况)
经过搜索找到的办法是,用root帐号把sudo fc-cache -fv后提示出错的字体文件夹挨个touch一遍就好了。作用是更新那些文件夹的访问时间,原理我就不知道了。快点的方法是用脚本执行,步骤如下:
1、点击(下面就有)或在附件中下载一个文本文件(实际上是出错文件夹的列表)
2、打开终端,在存放刚才下载的文件的文件夹下执行:
sudo cat cache_fail_folder_list.txt | sudo xargs touch
3、然后大致就好了,但很可能仍有一些目录没有包括进来,再次执行sudo fc-cache -fv看看还有没有fail掉的文件夹,有的话就用 sudo touch /XXX/XXX 继续touch更新它
4、搜到的文章里面有提到,上面的操作可能要用sudo -i切换到root帐号执行,不过我直接sudo的就成功了
以上,完成。关于这个问题的bug报告在这里,解决方法是下面Reed Lipman在评论中提供的。
/usr/share/fonts
/usr/share/fonts/X11
/usr/share/fonts/X11/100dpi
/usr/share/fonts/X11/75dpi
/usr/share/fonts/X11/Type1
/usr/share/fonts/X11/encodings
/usr/share/fonts/X11/encodings/large
/usr/share/fonts/X11/misc
/usr/share/fonts/X11/util
/usr/share/fonts/truetype
/usr/share/fonts/truetype/arphic
/usr/share/fonts/truetype/baekmuk
/usr/share/fonts/truetype/freefont
/usr/share/fonts/truetype/kochi
/usr/share/fonts/truetype/ttf-arabeyes
/usr/share/fonts/truetype/ttf-bengali-fonts
/usr/share/fonts/truetype/ttf-bitstream-vera
/usr/share/fonts/truetype/ttf-dejavu
/usr/share/fonts/truetype/ttf-devanagari-fonts
/usr/share/fonts/truetype/ttf-gentium
/usr/share/fonts/truetype/ttf-gujarati-fonts
/usr/share/fonts/truetype/ttf-kannada-fonts
/usr/share/fonts/truetype/ttf-lao
/usr/share/fonts/truetype/ttf-malayalam-fonts
/usr/share/fonts/truetype/ttf-mgopen
/usr/share/fonts/truetype/ttf-oriya-fonts
/usr/share/fonts/truetype/ttf-punjabi-fonts
/usr/share/fonts/truetype/ttf-tamil-fonts
/usr/share/fonts/truetype/ttf-telugu-fonts
/usr/share/fonts/type1
/usr/share/fonts/type1/gsfonts
/usr/share/X11/fonts
/usr/share/X11/fonts/100dpi
/usr/share/X11/fonts/75dpi
/usr/share/X11/fonts/Type1
/usr/share/X11/fonts/encodings
/usr/share/X11/fonts/encodings/large
/usr/share/X11/fonts/misc
/usr/share/X11/fonts/util
/usr/local/share/fonts
/var/lib/defoma/fontconfig.d
/var/lib/defoma/fontconfig.d/A
/var/lib/defoma/fontconfig.d/B
/var/lib/defoma/fontconfig.d/C
/var/lib/defoma/fontconfig.d/D
/var/lib/defoma/fontconfig.d/E
/var/lib/defoma/fontconfig.d/F
/var/lib/defoma/fontconfig.d/H
/var/lib/defoma/fontconfig.d/J
/var/lib/defoma/fontconfig.d/K
/var/lib/defoma/fontconfig.d/M
/var/lib/defoma/fontconfig.d/O
/var/lib/defoma/fontconfig.d/R
/var/lib/defoma/fontconfig.d/S
/var/lib/defoma/fontconfig.d/U
/var/lib/defoma/fontconfig.d/V
/var/lib/defoma/fontconfig.d/a
/var/lib/defoma/fontconfig.d/j
/var/lib/defoma/fontconfig.d/m
/var/lib/defoma/fontconfig.d/u