0 0

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

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

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

系统为红帽9

问题补充:
太好了,总有方法试一下了.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 打开失败:这个文件或者路径不存在.

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

我已经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张安装盘,我放的第一张盘进去.
问题补充:

谢谢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的,是都没装上还是因为装上后要设置什么吗?
2009年1月22日 11:17

4个答案 按时间排序 按投票排序

0 0

采纳的答案

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

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

是不是要到特定路径下才行?

咋报日文信息?先将LANG=en;
用rpm -ivh XXX需要Redhat 9的安装光盘。请不要告诉我不会mount cd吧!

2009年1月22日 12:09
0 0

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

现在还有一个办法,就是先把所有的字体先用
rpm -e xxxxx
宣布删掉,再重新rpm -ivh一遍,再试试。

2009年1月22日 14:16
0 0

引用
还是说找不到文件. LINUX有5张安装盘,我放的第一张盘进去.

一张一张找吧!

2009年1月22日 12:39
0 0

用rpm -ivh --force xxx-fonts-xxxx.rpm重新安装。这个包用下面的命令来查询:
rpm -qa|grep font来查询。

2009年1月22日 11:33

相关推荐

    linux下WPS提示系统缺失的字体

    在ubuntu 12.04 LTS下安装wps,完成后提示系统缺失字体,下载该字体,解压后将整个wps_symbol_fonts目录拷贝到 /usr/share/fonts/ 目录下 注意,wps_symbol_fonts目录要有可读可执行权限 1.权限设置,执行命令如下 cd...

    buildroot移植arm开发板字体库缺失

    QFontDatabase: Cannot find font directory /usr/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. QFontDatabase: ...

    字体库:simsun.tcc

    1.cd /usr/share/fonts 2.mkdir truetype 3.cd truetype 4.mkdir simsun 5.将simsun.tcc文件传到/usr/share/fonts/truetype/simsun/目录中 6.cd simsun 7.执行 mkfontscale, 生成了fonts.scale文件 8.执行 ...

    simkai.ttf

    simkai是一款中文楷体书法,字形优美大方,解决中文显示乱码问题。...# cp simkai.ttf /usr/share/zabbix/assets/fonts # sed -i 's#DejaVuSans#simkai#g' /usr/share/zabbix/include/defines.inc.php

    zysong.ttf字体-解决linux下oracle图形安装或配置界面乱码

    在Linux下安装oracle11g数据库,图形... 还需要将字体包fallback文件夹中的zysong.ttf字体复制到/usr/share/fonts/zh_CN/TrueType目录下,这是解决后续配置工具中文乱码问题,命令如下: mkdir -p /usr/share/fonts/zh_...

    Centos-fonts for Browse

    We should add some fonts in folder /usr/share/fonts/. [~]cd /usr/share/font [fonts]# wget http://qanfs.qa.webex.com/qiang/CentOS/fonts/Centos-fonts.zip] [fonts]# unzip Centos-fonts.zip [ fonts]# ...

    解决linux下安装oracle中文乱码的字体库zysong.ttf.zip

    如何不行,还需要将zysong.ttf安装到/usr/share/fonts/zh_CN/TrueType下,不记得这个是解决安装界面的中文乱码还是哪个地方的乱码问题了,命令如下: mkdir -p /usr/share/fonts/zh_CN/TrueType cp zysong.ttf /usr/...

    fonts_2.zip

    2. Create a directory for new fonts # mkdir /usr/share/fonts/truetype 3. Move the uncompressed font files to the new font directory # mv *.ttf /usr/share/fonts/truetype 4. Navigate to the font ...

    wps_fonts.tar.gz

    使用命令sudo unzip wps_fonts.zip -d /usr/share/fonts/wps-office 或解压后将目录中所有文件复制到/usr/share/fonts/wps-office下

    oracle11g中文乱码

    把zysong.ttf文件放于/usr/share/fonts/zh_CN/TrueType目录下 若没有此目录执行mkdir -p /usr/share/fonts/zh_CN/TrueType命令 cp zysong.ttf /usr/share/fonts/zh_CN/TrueType 最终得到:/usr/share/fonts/zh_...

    fonts.tar.gz

    centos出现乱码,将此附件 解压缩到 /usr/share 下即可,解压缩后得到 /usr/share/fonts 目录及文件

    linux中文字体安装包

    #安装字体 mkdir -p /usr/share/fonts #把要安装的字体上传到/usr/share/fonts路径下,之后再依次执行一下命令就大功告成了 cd /usr/share/fonts/ mkfontscale mkfontdir fc-cache

    所有常用中英文ttf字体包,包含几个手写字体

    1. Open /etc/profile and add a new environment variable JAVA_FONTS=/usr/share/fonts/truetype export JAVA_FONTS 2. Open font.properties file under jre/lib directory, uncommnent and set to the ...

    Linux-wps_symbol_fonts.zip

    将压缩包下的五个字体文件复制到/usr/share/fonts/wps-office下, 之后运行命令生成字体的索引信息: mkfontscale mkfontdir 运行fc-cache命令更新字体缓存 OK,问题解决,谢谢!希望可以帮助屏幕前的你!

    wkhtmltopdf fonts.zip

    下载后复制字体到linux系统 /usr/share/fonts 下 即可

    wps_symbol_fonts.zip

    ubuntu 20.04 安装wps后有缺失字体的字体,把这个压缩包解压,里面的字体拷贝到/usr/share/fonts/wps-office/即可。

Global site tag (gtag.js) - Google Analytics