首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >dpkg:错误处理包fontconfig (--配置)

dpkg:错误处理包fontconfig (--配置)
EN

Unix & Linux用户
提问于 2022-11-09 21:59:38
回答 1查看 393关注 0票数 0

fontconfig问题

代码语言:javascript
复制
# 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
代码语言:javascript
复制
# 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问题,就无法对其进行管理。

代码语言:javascript
复制
# 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)
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2022-11-11 19:32:49

我也有同样的问题。

检查手动编译的libfreetype旧版本,该版本通常由libfreetype6包提供。

我在/usr/local/lib中编译了和旧版本,它不仅破坏了fontconfig,而且由于fontconfig失效,还破坏了update。

票数 -1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/724301

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档