fontconfig 错误 - 无法安装任何东西

fontconfig 错误 - 无法安装任何东西

在应用所有可用的解决方案后,我发布了此查询。我正在使用 Ubuntu 16。

问题:

Errors were encountered while processing:
fontconfig
E: Sub-process /usr/bin/dpkg returned an error code (1)

每当我尝试安装、更新或删除任何内容时,总会出现错误,导致整个过程失败


sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up fontconfig (2.11.94-0ubuntu1.1) ...
Regenerating fonts cache... failed.
See /var/log/fontconfig.log for more information.
dpkg: error processing package fontconfig (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 fontconfig
E: Sub-process /usr/bin/dpkg returned an error code (1)

基本问题列在日志文件的最后一行,即

/usr/share/fonts/opentype/noto: Bus error (core dumped)

总线错误是导致问题的原因

输出自/var/log/fontconfig.log

/usr/share/fonts: caching, new cache contents: 0 fonts, 6 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 59 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/opentype/noto: Bus error (core dumped)

由于此问题,我无法正常使用系统。我该如何修复?

答案1

默认情况下,该/usr/share/fonts/opentype/noto文件夹包含软件包安装的字体fonts-noto-cjk。因此,重新安装fonts-noto-cjk可能值得一试:

sudo apt install --reinstall fonts-noto-cjk

相关内容