星期四, 6月 14, 2007

failed to write cache

引用來源:
http://www.linuxsir.org/bbs/archive/index.php/t-298704.html

正在設置 ttf-opensymbol (2.0.4.dfsg.2-7) ...
Updating fontconfig cache...
Fontconfig warning: no elements found. Check configuration.
Fontconfig warning: adding /var/cache/fontconfig
Fontconfig warning: adding ~/.fontconfig
/usr/share/fonts/X11: failed to write cache
/usr/share/fonts/X11/100dpi: failed to write cache
/usr/share/fonts/X11/75dpi: failed to write cache
/usr/share/fonts/X11/Type1: failed to write cache
/usr/share/fonts/X11/encodings: failed to write cache
/usr/share/fonts/X11/encodings/large: failed to write cache
/usr/share/fonts/X11/misc: failed to write cache
/usr/share/fonts/X11/util: failed to write cache
/usr/share/fonts/jfbterm: failed to write cache
/usr/share/fonts/truetype/ttf-dejavu: failed to write cache
/usr/share/fonts/type1: failed to write cache
/usr/share/fonts/type1/gsfonts: failed to write cache
/usr/local/share/fonts: failed to write cache
/var/lib/defoma/fontconfig.d: failed to write cache
/var/lib/defoma/fontconfig.d/C: failed to write cache
/var/lib/defoma/fontconfig.d/D: failed to write cache
/var/lib/defoma/fontconfig.d/N: failed to write cache
/var/lib/defoma/fontconfig.d/S: failed to write cache
/var/lib/defoma/fontconfig.d/U: failed to write cache
dpkg:處理 ttf-opensymbol (--configure)時出錯:
子進程·post-installation script·返回了錯誤號·19
dpkg:依賴關係問題使得 openoffice.org-core 的配置工作不能繼續:
openoffice.org-core 依賴於 ttf-opensymbol;然而:
軟件包 ttf-opensymbol 還沒有被配置。
...
...
...
在處理時有錯誤發生:
ttf-opensymbol
openoffice.org-core
python-uno
openoffice.org-writer
openoffice.org-calc
openoffice.org-draw
openoffice.org-impress
openoffice.org-math
openoffice.org-base
openoffice.org
openoffice.org-thesaurus-en-us
E: Sub-process /usr/bin/dpkg returned an error code (1)

冰封塵
07-04-22, 22:21
解決方法很簡單,只要sudo touch上邊所有「failed to write cache」的路徑就可以了。

一個一個很麻煩,最簡單的辦法是寫個腳本,例如:

touchall.sh

#!/bin/bash

sudo touch /usr/share/fonts
sudo touch /usr/share/X11


sudo touch /var/lib/defoma/fontconfig.d/u



我說的僅僅是字體緩存刷新不了的解決方法

沒有留言: