hhlux 2009-01-22 11:17 采纳率: 100%
浏览 982
已采纳

怎样恢复/usr/share/fonts??

/usr/share/fonts下的字体文件被我误删了,有没有办法恢复呢?

或者能不能找到/usr/share/fonts里面所有文件的下载?

系统为红帽9

[b]问题补充:[/b]
太好了,总有方法试一下了.rpm -qa|grep font执行结果如下:

fontconfig-2.4.1-6.el5
bitmap-fonts-0.3-5.1.1
libfontenc-devel-1.0.2-2.2.el5
xorg-x11-fonts-misc-7.1-2.1.el5
libXfontcache-1.0.2-3.1
libXfont-1.2.2-1.fc6
libXfont-devel-1.2.2-1.fc6
xorg-x11-fonts-base-7.1-2.1.el5
xorg-x11-fonts-Type1-7.1-2.1.el5
dejavu-lgc-fonts-2.10-1
xorg-x11-fonts-100dpi-7.1-2.1.el5
xorg-x11-fonts-truetype-7.1-2.1.el5
fonts-chinese-3.02-9.6.el5
libfontenc-1.0.2-2.2.el5
bitstream-vera-fonts-1.10-7
ghostscript-fonts-5.50-13.1.1
chkfontpath-1.10.1-1.1
urw-fonts-2.3-6.1.1
xorg-x11-fonts-75dpi-7.1-2.1.el5
fonts-japanese-0.20061016-4.el5
xorg-x11-font-utils-7.1-2
fontconfig-devel-2.4.1-6.el5
libXfontcache-devel-1.0.2-3.1
xorg-x11-fonts-ISO8859-1-100dpi-7.1-2.1.el5
xorg-x11-fonts-ISO8859-1-75dpi-7.1-2.1.el5
fonts-tamil-2.0.13-1.el5

然后我随便执行一个 rpm -ivh --force fonts-chinese-3.02-9.6.el5,报了下面的错误.

エラー: bitmap-fonts-0.3-5.1.1 のオープンに失敗: そのようなファイルやディレクトリはありま せん

错误:bitmap-fonts-0.3-5.1.1 打开失败:这个文件或者路径不存在.

是不是要到特定路径下才行?
[b]问题补充:[/b]
还是有点问题.

我已经MOUNT上光驱了,

[root@localhost cdrom]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only

但还是报了跟上面一样的错,

[root@localhost cdrom]# rpm -ivh --force bitmap-fonts-0.3-5.1.1.rpm
エラー: bitmap-fonts-0.3-5.1.1.rpm のオープンに失敗: そのようなファイルやディレクトリはあ りません

还是说找不到文件. LINUX有5张安装盘,我放的第一张盘进去.
[b]问题补充:[/b]

谢谢lewhwa

现在除了装不上的,5张安装盘所有的FONT文件都已经装上了,但日文和中文还是显示方框.跟装之前一个效果 .

装上后我执行了fc-cache -fv,用fc-list查看结果如下:
/usr/share/fonts: caching, 0 fonts, 24 dirs
/usr/share/fonts/ISO8859-2: caching, 0 fonts, 3 dirs
/usr/share/fonts/ISO8859-2/100dpi: caching, 0 fonts, 0 dirs
/usr/share/fonts/ISO8859-2/75dpi: caching, 0 fonts, 0 dirs
/usr/share/fonts/ISO8859-2/misc: caching, 0 fonts, 0 dirs
/usr/share/fonts/KOI8-R: caching, 0 fonts, 3 dirs
/usr/share/fonts/KOI8-R/100dpi: caching, 0 fonts, 0 dirs
/usr/share/fonts/KOI8-R/75dpi: caching, 0 fonts, 0 dirs
/usr/share/fonts/KOI8-R/misc: caching, 0 fonts, 0 dirs
/usr/share/fonts/arabic: caching, 14 fonts, 0 dirs
/usr/share/fonts/bengali: caching, 1 fonts, 0 dirs
/usr/share/fonts/bitmap-fonts: caching, 31 fonts, 0 dirs
/usr/share/fonts/bitstream-vera: caching, 10 fonts, 0 dirs
/usr/share/fonts/chinese: caching, 0 fonts, 2 dirs
/usr/share/fonts/chinese/TrueType: caching, 3 fonts, 0 dirs
/usr/share/fonts/chinese/misc: caching, 1 fonts, 0 dirs
/usr/share/fonts/default: caching, 0 fonts, 2 dirs
/usr/share/fonts/default/Type1: caching, 35 fonts, 0 dirs
/usr/share/fonts/default/ghostscript: caching, 8 fonts, 0 dirs
/usr/share/fonts/dejavu-lgc: caching, 21 fonts, 0 dirs
/usr/share/fonts/gujarati: caching, 1 fonts, 0 dirs
/usr/share/fonts/hebrew: caching, 30 fonts, 0 dirs
/usr/share/fonts/hindi: caching, 1 fonts, 0 dirs
/usr/share/fonts/ja: caching, 0 fonts, 1 dirs
/usr/share/fonts/ja/TrueType: caching, 0 fonts, 2 dirs
/usr/share/fonts/ja/TrueType/kochi-gothic-subst.ttf: caching, 0 fonts, 0 dirs
/usr/share/fonts/ja/TrueType/kochi-mincho-subst.ttf: caching, 0 fonts, 0 dirs
/usr/share/fonts/japanese: caching, 0 fonts, 2 dirs
/usr/share/fonts/japanese/TrueType: caching, 2 fonts, 0 dirs
/usr/share/fonts/japanese/misc: caching, 84 fonts, 0 dirs
/usr/share/fonts/kannada: caching, 1 fonts, 0 dirs
/usr/share/fonts/korean: caching, 0 fonts, 2 dirs
/usr/share/fonts/korean/TrueType: caching, 4 fonts, 0 dirs
/usr/share/fonts/korean/misc: caching, 0 fonts, 0 dirs
/usr/share/fonts/malayalam: caching, 1 fonts, 0 dirs
/usr/share/fonts/oriya: caching, 1 fonts, 0 dirs
/usr/share/fonts/punjabi: caching, 1 fonts, 0 dirs
/usr/share/fonts/sinhala: caching, 1 fonts, 0 dirs
/usr/share/fonts/tamil: caching, 1 fonts, 0 dirs
/usr/share/fonts/telugu: caching, 1 fonts, 0 dirs
/usr/share/fonts/zh_CN: caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_CN/TrueType: caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_CN/TrueType/zysong.ttf: caching, 0 fonts, 0 dirs
/usr/share/fonts/zh_TW: caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_TW/TrueType: caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_TW/TrueType/bsmi00lp.ttf: caching, 0 fonts, 0 dirs
/usr/share/X11/fonts/Type1: caching, 29 fonts, 0 dirs
/usr/share/X11/fonts/OTF: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning unwritable cache directory

里面有很多0 fonts的,是都没装上还是因为装上后要设置什么吗?

  • 写回答

4条回答 默认 最新

  • wwwghost 2009-01-22 12:09
    关注

    [quote]エラー: bitmap-fonts-0.3-5.1.1 のオープンに失敗: そのようなファイルやディレクトリはありま せん

    错误:bitmap-fonts-0.3-5.1.1 打开失败:这个文件或者路径不存在.

    是不是要到特定路径下才行?[/quote]
    咋报日文信息?先将LANG=en;
    用rpm -ivh XXX需要Redhat 9的安装光盘。请不要告诉我不会mount cd吧!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 Pwm双极模式H桥驱动控制电机
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题