dpkg:パッケージフォントの構成(--configure)の処理中にエラーが発生しました。

dpkg:パッケージフォントの構成(--configure)の処理中にエラーが発生しました。

フォント構成の問題

# 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にダウングレードするコマンドを実行しましたが、フォント構成の問題を解決しないと管理できません。

# 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

私も同じ問題があります。

通常、libfreetype6パッケージで提供されている手動でコンパイルされた古いバージョンのlibfreetypeを確認してください。

/usr/local/lib で以前のバージョンをコンパイルしたところ、フォントの構成が中断されただけでなく、フォントの構成が壊れていたため、update-initramfs も破損していました。

おすすめ記事