fontconfig问题
# 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)发布于 2022-11-11 19:32:49
我也有同样的问题。
检查手动编译的libfreetype旧版本,该版本通常由libfreetype6包提供。
我在/usr/local/lib中编译了和旧版本,它不仅破坏了fontconfig,而且由于fontconfig失效,还破坏了update。
https://unix.stackexchange.com/questions/724301
复制相似问题