字体配置问题
# dpkg --configure -a
Setting up font config (2.13.1-4.5) ...
Regenerating fonts cache... failed.
See /var/log/fontconfig.log for more information.
dpkg: error processing package fontconfig (--configure):
installed font config package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
fontconfig
# cat /var/log/fontconfig.log
fc-cache: symbol lookup error: /lib/x86_64-linux-gnu/libharfbuzz.so.0: undefined symbol: FT_Get_Transform
根据日志输出,我运行了命令将 libharfbuzz* 包从版本 5.2.0-2 降级到 2.7.4-1,但如果不修复 fontconfig 问题,则无法对其进行管理。
# apt install libharfbuzz*=2.7.4-1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libharfbuzz0' for glob 'libharfbuzz*'
Note, selecting 'libharfbuzz-icu0' for glob 'libharfbuzz*'
Note, selecting 'libharfbuzz-gobject0' for glob 'libharfbuzz*'
Note, selecting 'libharfbuzz0a' for glob 'libharfbuzz*'
Note, selecting 'libharfbuzz0b' for glob 'libharfbuzz*'
Note, selecting 'libharfbuzz-bin' for glob 'libharfbuzz*'
Note, selecting 'libharfbuzz-dev' for glob 'libharfbuzz*'
Note, selecting 'libharfbuzz-doc' for glob 'libharfbuzz*'
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up font config (2.13.1-4.5)
Regenerating fonts cache... failed.
See /var/log/fontconfig.log for more information.
dpkg: error processing package fontconfig (--configure):
installed fontconfig package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
fontconfig
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
我有同样的问题。
检查手动编译的 libfreetype 旧版本,它通常由 libfreetype6 包提供。
我在 /usr/local/lib 中编译了旧版本,这不仅破坏了 fontconfig,而且由于破坏了 fontconfig,update-initramfs 也被破坏了。