Chinaunix首页 | 论坛 | 博客
  • 博客访问: 574790
  • 博文数量: 836
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4995
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:55
文章分类

全部博文(836)

文章存档

2008年(836)

我的朋友

分类: LINUX

2008-08-22 17:36:37

 
安装7.10后出现依赖问题:
Updatingfontconfigcache...
/usr/share/fonts/truetype/arphic:failedtowritecache
dpkg:处理ttf-opensymbol(--configure)时出错:
子进程post-installationscript返回了错误号1
......

解决:
方法之一,比较简单,写了一个很简单的脚本,然后执行下就可以了,内容如下:

#!/bin/bash
#
#修正Ubuntu7.04fc-cachefailedtowritecache错误
#sudotouch/usr/share/fonts
sudotouch/usr/share/fonts/X11
sudotouch/usr/share/fonts/X11/100dpi
sudotouch/usr/share/fonts/X11/75dpi
sudotouch/usr/share/fonts/X11/Type1
sudotouch/usr/share/fonts/X11/encodings
sudotouch/usr/share/fonts/X11/encodings/large
sudotouch/usr/share/fonts/X11/misc
sudotouch/usr/share/fonts/X11/util
sudotouch/usr/share/fonts/truetype
sudotouch/usr/share/fonts/truetype/arphic
sudotouch/usr/share/fonts/truetype/baekmuk
sudotouch/usr/share/fonts/truetype/freefont
sudotouch/usr/share/fonts/truetype/kochi
sudotouch/usr/share/fonts/truetype/openoffice
sudotouch/usr/share/fonts/truetype/thai
sudotouch/usr/share/fonts/truetype/ttf-arabeyes
sudotouch/usr/share/fonts/truetype/ttf-bengali-fonts
sudotouch/usr/share/fonts/truetype/ttf-bitstream-vera
sudotouch/usr/share/fonts/truetype/ttf-dejavu
sudotouch/usr/share/fonts/truetype/ttf-devanagari-fonts
sudotouch/usr/share/fonts/truetype/ttf-gentium
sudotouch/usr/share/fonts/truetype/ttf-gujarati-fonts
sudotouch/usr/share/fonts/truetype/ttf-kannada-fonts
sudotouch/usr/share/fonts/truetype/ttf-lao
sudotouch/usr/share/fonts/truetype/ttf-malayalam-fonts
sudotouch/usr/share/fonts/truetype/ttf-mgopen
sudotouch/usr/share/fonts/truetype/ttf-oriya-fonts
sudotouch/usr/share/fonts/truetype/ttf-punjabi-fonts
sudotouch/usr/share/fonts/truetype/ttf-tamil-fonts
sudotouch/usr/share/fonts/truetype/ttf-telugu-fonts
sudotouch/usr/share/fonts/type1
sudotouch/usr/share/fonts/type1/gsfonts
sudotouch/usr/share/X11/fonts
sudotouch/usr/share/X11/fonts/100dpi
sudotouch/usr/share/X11/fonts/75dpi
sudotouch/usr/share/X11/fonts/Type1
sudotouch/usr/share/X11/fonts/encodings
sudotouch/usr/share/X11/fonts/encodings/large
sudotouch/usr/share/X11/fonts/misc
sudotouch/usr/share/X11/fonts/util
sudotouch/usr/local/share/fonts
sudotouch/var/lib/defoma/fontconfig.d
sudotouch/var/lib/defoma/fontconfig.d/A
sudotouch/var/lib/defoma/fontconfig.d/B
sudotouch/var/lib/defoma/fontconfig.d/C
sudotouch/var/lib/defoma/fontconfig.d/D
sudotouch/var/lib/defoma/fontconfig.d/E
sudotouch/var/lib/defoma/fontconfig.d/F
sudotouch/var/lib/defoma/fontconfig.d/G
sudotouch/var/lib/defoma/fontconfig.d/H
sudotouch/var/lib/defoma/fontconfig.d/J
sudotouch/var/lib/defoma/fontconfig.d/K
sudotouch/var/lib/defoma/fontconfig.d/L
sudotouch/var/lib/defoma/fontconfig.d/M
sudotouch/var/lib/defoma/fontconfig.d/N
sudotouch/var/lib/defoma/fontconfig.d/O
sudotouch/var/lib/defoma/fontconfig.d/P
sudotouch/var/lib/defoma/fontconfig.d/R
sudotouch/var/lib/defoma/fontconfig.d/S
sudotouch/var/lib/defoma/fontconfig.d/T
sudotouch/var/lib/defoma/fontconfig.d/U
sudotouch/var/lib/defoma/fontconfig.d/V
sudotouch/var/lib/defoma/fontconfig.d/a
sudotouch/var/lib/defoma/fontconfig.d/j
sudotouch/var/lib/defoma/fontconfig.d/m
sudotouch/var/lib/defoma/fontconfig.d/u

方法之二,很让我喜欢:

sudofc-cache-fv2>&1|grepfailed|cut-f1-d”:”|xargs-isudotouch{}&&sudofc-cache-fv

阅读(230) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~