jrottenberg / ffmpeg

Docker build for FFmpeg on Ubuntu / Alpine / Centos / Scratch / nvidia / vaapi

Home Page:https://hub.docker.com/r/jrottenberg/ffmpeg/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ubuntu 20.04 - install imagemagick - fontconfig error

3qdev opened this issue · comments

commented

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)

commented

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.

use this command to Dockerfile

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