高手帮忙,无法重新安装wqy字体

为当前最终发行版之前的所有版本提供支持
回复
yulewang
帖子: 154
注册时间: 2006-08-12 22:00
送出感谢: 0
接收感谢: 0

高手帮忙,无法重新安装wqy字体

#1

帖子 yulewang » 2006-09-28 14:35

yulewang@yulewang-laptop:~$ sudo apt-get install xfonts-wqy
Reading package lists... Done
Building dependency tree... Done
xfonts-wqy is already the newest version.
The following packages will be REMOVED:
xfonts-wqy
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 5390kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 81259 files and directories currently installed.)
Removing xfonts-wqy ...
usage error: unrecognized option
Usage: update-fonts-dir DIRECTORY ...
update-fonts-dir { -h | --help }
This program is a wrapper for mkfontdir(1x) that is primarily useful to Debian
package maintainer scripts. See update-fonts-dir(8) for more information.
Options:
-h, --help display this usage message and exitdpkg: error processing xfonts-wqy (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
xfonts-wqy
E: Sub-process /usr/bin/dpkg returned an error code (1)
yulewang@yulewang-laptop:~$
头像
SuperWar3Fan
帖子: 1263
注册时间: 2006-05-20 6:25
来自: 山东淄博
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 SuperWar3Fan » 2006-09-28 16:33

sudo apt-get -f install xfonts-wqy
或者suod aptitude install xfonts-wqy
yulewang
帖子: 154
注册时间: 2006-08-12 22:00
送出感谢: 0
接收感谢: 0

#3

帖子 yulewang » 2006-09-28 16:59

我都试过了,没有用处的。呵呵
后来hack了一下apt的脚本成功了。
进入/var/lib/dpkg/info,改动一下xfonts-wqy.postrm,发现其中的
update-fonts-dir --x11r7-layout misc不正确,改掉就好了。呵呵。
不过谢谢了。
回复

回到 “老旧版本支持”