jrottenberg / ffmpeg

Docker build for FFmpeg on Ubuntu / Alpine / Centos / Scratch / nvidia / vaapi
https://hub.docker.com/r/jrottenberg/ffmpeg/
Apache License 2.0
1.42k stars 455 forks source link

ubuntu 20.04 - install imagemagick - fontconfig error #316

Open 3qdev opened 3 years ago

3qdev commented 3 years ago

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)

juxuanu commented 2 years ago

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.
zyx134 commented 7 months ago

use this command to Dockerfile

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