fc-cache failed (solution)

如果遇到:

 fc-cache -f -v
/usr/share/fonts: caching, 0 fonts, 25 dirs
/usr/share/fonts/baekmuk-ttf-gulim: caching, 1 fonts, 0 dirs
/usr/share/fonts/bitmap-fonts: caching, 31 fonts, 0 dirs
/usr/share/fonts/bitmap-fonts: failed to write cache
/usr/share/fonts/cjkunifonts-ukai: caching, 1 fonts, 0 dirs
/usr/share/fonts/cjkunifonts-ukai: failed to write cache
/usr/share/fonts/cjkunifonts-uming: caching, 1 fonts, 0 dirs
/usr/share/fonts/cjkunifonts-uming: failed to write cache
/usr/share/fonts/default: caching, 0 fonts, 2 dirs
/usr/share/fonts/default: failed to write cache
/usr/share/fonts/default/Type1: caching, 35 fonts, 0 dirs
/usr/share/fonts/default/Type1: failed to write cache
/usr/share/fonts/default/ghostscript: caching, 8 fonts, 0 dirs
/usr/share/fonts/default/ghostscript: failed to write cache
/usr/share/fonts/dejavu-lgc: caching, 21 fonts, 0 dirs
/usr/share/fonts/dejavu-lgc: failed to write cache
fc-cache: failed

的情况,使用touch命令
touch /usr/share/fonts/*
再执行一次fc-cache -f -v 就好了

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s