ffmpeg icon indicating copy to clipboard operation
ffmpeg copied to clipboard

ubuntu 20.04 - install imagemagick - fontconfig error

Open 3qdev opened this issue 4 years ago • 2 comments

Hello,

if i use *:ubuntu2004 as base image and try to install imagemagick, then there is a error in docker build process:

Setting up fontconfig (2.13.1-2ubuntu3) ...
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

maybe it is because ffmpeg use FONTCONFIG_VERSION=2.12.4 and Ubuntu 20.04 Package: fontconfig (2.13.1-2ubuntu3)

3qdev avatar Sep 13 '21 12:09 3qdev

Same with jrottenberg/ffmpeg:5.0-nvidia2004. If a package depends on fontconfig, it will fail installation with

Setting up fontconfig (2.13.1-2ubuntu3) ...
Regenerating fonts cache... failed.

juxuanu avatar Mar 08 '22 12:03 juxuanu

use this command to Dockerfile

RUN apt install fontconfig -y || true RUN dpkg --configure -a RUN apt install fontconfig -y

zyx134 avatar Feb 18 '24 01:02 zyx134