jrottenberg/ffmpeg

ffmpeg:4.4-nvidia2204,ffmpeg:5.1.2-nvidia2004,ffmpeg:6.1.1-nvidia2204 - install imagemagick error

zyx134 opened this issue · 2 comments

Hello,

if i use ffmpeg:4.4-nvidia2204,ffmpeg:5.1.2-nvidia2004,ffmpeg:6.1.1-nvidia2204 as base image and try to install imagemagick, then there is a error in docker build process:

update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/automake.1.gz because associated file /usr/share/man/man1/automake-1.16.1.gz (of link group automake) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/aclocal.1.gz because associated file /usr/share/man/man1/aclocal-1.16.1.gz (of link group automake) doesn't exist
Setting up fontconfig (2.13.1-4.2ubuntu5) ...
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
Setting up libjpeg-turbo8-dev:amd64 (2.1.2-0ubuntu1) ...
Setting up libexif-dev:amd64 (0.6.24-1build1) ...
Setting up gir1.2-freedesktop:amd64 (1.72.0-1) ...
Setting up python3.10 (3.10.12-1~22.04.3) ...
Setting up libpcre2-dev:amd64 (10.39-3ubuntu0.1) ...
Setting up libsm-dev:amd64 (2:1.2.3-1build2) ...
Setting up libselinux1-dev:amd64 (3.3-1build2) ...
Setting up libpcre3-dev:amd64 (2:8.39-13ubuntu0.22.04.1) ...
dpkg: dependency problems prevent configuration of libpango-1.0-0:amd64:
libpango-1.0-0:amd64 depends on fontconfig (>= 2.13.0); however:
Package fontconfig is not configured yet.

dpkg: error processing package libpango-1.0-0:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libheif1:amd64 (1.12.0-2build1) ...
Setting up python3 (3.10.6-1~22.04) ...
running python rtupdate hooks for python3.10...
running python post-rtupdate hooks for python3.10...
Setting up binutils (2.38-4ubuntu2.5) ...
Setting up libdjvulibre-dev:amd64 (3.5.28-2build2) ...
Setting up libcairo2:amd64 (1.16.0-5ubuntu2) ...
dpkg: dependency problems prevent configuration of librsvg2-2:amd64:
librsvg2-2:amd64 depends on libpango-1.0-0 (>= 1.45.5); however:
Package libpango-1.0-0:amd64 is not configured yet.

dpkg: error processing package librsvg2-2:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libltdl-dev:amd64 (2.4.6-15build2) ...
Setting up libmagickcore-6.q16-6:amd64 (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3) ...
Setting up libxml2-dev:amd64 (2.9.13+dfsg-1ubuntu0.3) ...
Setting up libexpat1-dev:amd64 (2.4.7-1ubuntu0.2) ...
Setting up libwmf-0.2-7:amd64 (0.2.12-5ubuntu1) ...
Setting up uuid-dev:amd64 (2.37.2-4ubuntu3) ...
Setting up shared-mime-info (2.1-2) ...
Setting up libgd3:amd64 (2.3.0-2ubuntu2) ...
dpkg: dependency problems prevent configuration of librsvg2-common:amd64:
librsvg2-common:amd64 depends on librsvg2-2 (= 2.52.5+dfsg-3ubuntu0.2); however:
Package librsvg2-2:amd64 is not configured yet.

dpkg: error processing package librsvg2-common:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up netpbm (2:10.0-15.4) ...
Setting up libxt6:amd64 (1:1.2.1-1) ...
Setting up libcups2:amd64 (2.4.1op1-1ubuntu4.7) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Setting up gcc-11 (11.4.0-1ubuntu1~22.04) ...
dpkg: dependency problems prevent configuration of librsvg2-dev:amd64:
librsvg2-dev:amd64 depends on librsvg2-2 (= 2.52.5+dfsg-3ubuntu0.2); however:
Package librsvg2-2:amd64 is not configured yet.
librsvg2-dev:amd64 depends on librsvg2-common (= 2.52.5+dfsg-3ubuntu0.2); however:
Package librsvg2-common:amd64 is not configured yet.

dpkg: error processing package librsvg2-dev:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libmagickwand-6.q16-6:amd64 (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3) ...
Setting up libgdk-pixbuf-2.0-0:amd64 (2.42.8+dfsg-1ubuntu0.2) ...
g_module_open() failed for /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: fribidi_get_par_embedding_levels_ex
Setting up libcairo-gobject2:amd64 (1.16.0-5ubuntu2) ...
dpkg: dependency problems prevent configuration of libpangoft2-1.0-0:amd64:
libpangoft2-1.0-0:amd64 depends on libpango-1.0-0 (= 1.50.6+ds-2ubuntu1); however:
Package libpango-1.0-0:amd64 is not configured yet.

dpkg: error processing package libpangoft2-1.0-0:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libjpeg8-dev:amd64 (8c-2ubuntu10) ...
dpkg: dependency problems prevent configuration of gir1.2-rsvg-2.0:amd64:
gir1.2-rsvg-2.0:amd64 depends on librsvg2-2 (>= 2.52.5); however:
Package librsvg2-2:amd64 is not configured yet.

dpkg: error processing package gir1.2-rsvg-2.0:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up python3-lib2to3 (3.10.8-1~22.04) ...
dpkg: dependency problems prevent configuration of libpangocairo-1.0-0:amd64:
libpangocairo-1.0-0:amd64 depends on libpango-1.0-0 (= 1.50.6+ds-2ubuntu1); however:
Package libpango-1.0-0:amd64 is not configured yet.
libpangocairo-1.0-0:amd64 depends on libpangoft2-1.0-0 (= 1.50.6+ds-2ubuntu1); however:
Package libpangoft2-1.0-0:amd64 is not configured yet.

dpkg: error processing package libpangocairo-1.0-0:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libc-devtools (2.35-0ubuntu3.6) ...
Setting up python3-distutils (3.10.8-122.04) ...
Setting up libcairo-script-interpreter2:amd64 (1.16.0-5ubuntu2) ...
Setting up libglib2.0-dev-bin (2.72.4-0ubuntu2.2) ...
Setting up libblkid-dev:amd64 (2.37.2-4ubuntu3) ...
Setting up libgs9:amd64 (9.55.0
dfsg1-0ubuntu5.6) ...
Setting up gir1.2-gdkpixbuf-2.0:amd64 (2.42.8+dfsg-1ubuntu0.2) ...
dpkg: dependency problems prevent configuration of libmagickcore-6.q16-6-extra:amd64:
libmagickcore-6.q16-6-extra:amd64 depends on libpango-1.0-0 (>= 1.22.0); however:
Package libpango-1.0-0:amd64 is not configured yet.
libmagickcore-6.q16-6-extra:amd64 depends on libpangocairo-1.0-0 (>= 1.14.0); however:
Package libpangocairo-1.0-0:amd64 is not configured yet.

dpkg: error processing package libmagickcore-6.q16-6-extra:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libtool (2.4.6-15build2) ...
Setting up libpng-dev:amd64 (1.6.37-3build5) ...
Setting up libjpeg-dev:amd64 (8c-2ubuntu10) ...
Setting up ghostscript (9.55.0~dfsg1-0ubuntu5.6) ...
dpkg: dependency problems prevent configuration of libmagickcore-6.q16-dev:amd64:
libmagickcore-6.q16-dev:amd64 depends on libmagickcore-6.q16-6-extra (= 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3); however:
Package libmagickcore-6.q16-6-extra:amd64 is not configured yet.
libmagickcore-6.q16-dev:amd64 depends on librsvg2-dev; however:
Package librsvg2-dev:amd64 is not configured yet.

dpkg: error processing package libmagickcore-6.q16-dev:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up gcc (4:11.2.0-1ubuntu1) ...
Setting up libfreetype-dev:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
Setting up libwmf-dev (0.2.12-5ubuntu1) ...
Setting up libtiff-dev:amd64 (4.3.0-6ubuntu0.7) ...
Setting up libxt-dev:amd64 (1:1.2.1-1) ...
Setting up imagemagick-6.q16 (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3) ...
update-alternatives: using /usr/bin/compare-im6.q16 to provide /usr/bin/compare (compare) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/compare.1.gz because associated file /usr/share/man/man1/compare-im6.q16.1.gz (of link group compare) doesn't exist
update-alternatives: using /usr/bin/compare-im6.q16 to provide /usr/bin/compare-im6 (compare-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/compare-im6.1.gz because associated file /usr/share/man/man1/compare-im6.q16.1.gz (of link group compare-im6) doesn't exist
update-alternatives: using /usr/bin/animate-im6.q16 to provide /usr/bin/animate (animate) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/animate.1.gz because associated file /usr/share/man/man1/animate-im6.q16.1.gz (of link group animate) doesn't exist
update-alternatives: using /usr/bin/animate-im6.q16 to provide /usr/bin/animate-im6 (animate-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/animate-im6.1.gz because associated file /usr/share/man/man1/animate-im6.q16.1.gz (of link group animate-im6) doesn't exist
update-alternatives: using /usr/bin/convert-im6.q16 to provide /usr/bin/convert (convert) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/convert.1.gz because associated file /usr/share/man/man1/convert-im6.q16.1.gz (of link group convert) doesn't exist
update-alternatives: using /usr/bin/convert-im6.q16 to provide /usr/bin/convert-im6 (convert-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/convert-im6.1.gz because associated file /usr/share/man/man1/convert-im6.q16.1.gz (of link group convert-im6) doesn't exist
update-alternatives: using /usr/bin/composite-im6.q16 to provide /usr/bin/composite (composite) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/composite.1.gz because associated file /usr/share/man/man1/composite-im6.q16.1.gz (of link group composite) doesn't exist
update-alternatives: using /usr/bin/composite-im6.q16 to provide /usr/bin/composite-im6 (composite-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/composite-im6.1.gz because associated file /usr/share/man/man1/composite-im6.q16.1.gz (of link group composite-im6) doesn't exist
update-alternatives: using /usr/bin/conjure-im6.q16 to provide /usr/bin/conjure (conjure) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/conjure.1.gz because associated file /usr/share/man/man1/conjure-im6.q16.1.gz (of link group conjure) doesn't exist
update-alternatives: using /usr/bin/conjure-im6.q16 to provide /usr/bin/conjure-im6 (conjure-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/conjure-im6.1.gz because associated file /usr/share/man/man1/conjure-im6.q16.1.gz (of link group conjure-im6) doesn't exist
update-alternatives: using /usr/bin/import-im6.q16 to provide /usr/bin/import (import) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/import.1.gz because associated file /usr/share/man/man1/import-im6.q16.1.gz (of link group import) doesn't exist
update-alternatives: using /usr/bin/import-im6.q16 to provide /usr/bin/import-im6 (import-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/import-im6.1.gz because associated file /usr/share/man/man1/import-im6.q16.1.gz (of link group import-im6) doesn't exist
update-alternatives: using /usr/bin/identify-im6.q16 to provide /usr/bin/identify (identify) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/identify.1.gz because associated file /usr/share/man/man1/identify-im6.q16.1.gz (of link group identify) doesn't exist
update-alternatives: using /usr/bin/identify-im6.q16 to provide /usr/bin/identify-im6 (identify-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/identify-im6.1.gz because associated file /usr/share/man/man1/identify-im6.q16.1.gz (of link group identify-im6) doesn't exist
update-alternatives: using /usr/bin/stream-im6.q16 to provide /usr/bin/stream (stream) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/stream.1.gz because associated file /usr/share/man/man1/stream-im6.q16.1.gz (of link group stream) doesn't exist
update-alternatives: using /usr/bin/stream-im6.q16 to provide /usr/bin/stream-im6 (stream-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/stream-im6.1.gz because associated file /usr/share/man/man1/stream-im6.q16.1.gz (of link group stream-im6) doesn't exist
update-alternatives: using /usr/bin/display-im6.q16 to provide /usr/bin/display (display) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/display.1.gz because associated file /usr/share/man/man1/display-im6.q16.1.gz (of link group display) doesn't exist
update-alternatives: using /usr/bin/display-im6.q16 to provide /usr/bin/display-im6 (display-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/display-im6.1.gz because associated file /usr/share/man/man1/display-im6.q16.1.gz (of link group display-im6) doesn't exist
update-alternatives: using /usr/bin/montage-im6.q16 to provide /usr/bin/montage (montage) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/montage.1.gz because associated file /usr/share/man/man1/montage-im6.q16.1.gz (of link group montage) doesn't exist
update-alternatives: using /usr/bin/montage-im6.q16 to provide /usr/bin/montage-im6 (montage-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/montage-im6.1.gz because associated file /usr/share/man/man1/montage-im6.q16.1.gz (of link group montage-im6) doesn't exist
update-alternatives: using /usr/bin/mogrify-im6.q16 to provide /usr/bin/mogrify (mogrify) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/mogrify.1.gz because associated file /usr/share/man/man1/mogrify-im6.q16.1.gz (of link group mogrify) doesn't exist
update-alternatives: using /usr/bin/mogrify-im6.q16 to provide /usr/bin/mogrify-im6 (mogrify-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/mogrify-im6.1.gz because associated file /usr/share/man/man1/mogrify-im6.q16.1.gz (of link group mogrify-im6) doesn't exist
Setting up libgdk-pixbuf2.0-bin (2.42.8+dfsg-1ubuntu0.2) ...
Setting up libmount-dev:amd64 (2.37.2-4ubuntu3) ...
dpkg: dependency problems prevent configuration of libmagickwand-6.q16-dev:amd64:
libmagickwand-6.q16-dev:amd64 depends on libmagickcore-6.q16-6-extra (= 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3); however:
Package libmagickcore-6.q16-6-extra:amd64 is not configured yet.
libmagickwand-6.q16-dev:amd64 depends on libmagickcore-6.q16-dev (= 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3); however:
Package libmagickcore-6.q16-dev:amd64 is not configured yet.

dpkg: error processing package libmagickwand-6.q16-dev:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libfontconfig-dev:amd64 (2.13.1-4.2ubuntu5) ...
Setting up libfreetype6-dev:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
Setting up libglib2.0-dev:amd64 (2.72.4-0ubuntu2.2) ...
Setting up imagemagick (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3) ...
dpkg: dependency problems prevent configuration of libmagickwand-dev:
libmagickwand-dev depends on libmagickwand-6.q16-dev; however:
Package libmagickwand-6.q16-dev:amd64 is not configured yet.

dpkg: error processing package libmagickwand-dev (--configure):
dependency problems - leaving unconfigured
Setting up libcairo2-dev:amd64 (1.16.0-5ubuntu2) ...
Setting up libgdk-pixbuf-2.0-dev:amd64 (2.42.8+dfsg-1ubuntu0.2) ...
Setting up libfontconfig1-dev:amd64 (2.13.1-4.2ubuntu5) ...
Processing triggers for libc-bin (2.35-0ubuntu3.4) ...
Errors were encountered while processing:
fontconfig
libpango-1.0-0:amd64
librsvg2-2:amd64
librsvg2-common:amd64
librsvg2-dev:amd64
libpangoft2-1.0-0:amd64
gir1.2-rsvg-2.0:amd64
libpangocairo-1.0-0:amd64
libmagickcore-6.q16-6-extra:amd64
libmagickcore-6.q16-dev:amd64
libmagickwand-6.q16-dev:amd64
libmagickwand-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up fontconfig (2.13.1-4.2ubuntu5) ...
Regenerating fonts cache... done.
Setting up libpango-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libpangoft2-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libpangocairo-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libmagickcore-6.q16-6-extra:amd64 (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3) ...
Setting up librsvg2-2:amd64 (2.52.5+dfsg-3ubuntu0.2) ...
Setting up librsvg2-common:amd64 (2.52.5+dfsg-3ubuntu0.2) ...
Setting up gir1.2-rsvg-2.0:amd64 (2.52.5+dfsg-3ubuntu0.2) ...
Setting up librsvg2-dev:amd64 (2.52.5+dfsg-3ubuntu0.2) ...
Setting up libmagickcore-6.q16-dev:amd64 (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3) ...
Setting up libmagickwand-6.q16-dev:amd64 (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3) ...
Setting up libmagickwand-dev (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.4) ...
Processing triggers for libgdk-pixbuf-2.0-0:amd64 (2.42.8+dfsg-1ubuntu0.2) ...
g_module_open() failed for /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: fribidi_get_par_embedding_levels_ex
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Building tag database...
The command '/bin/sh -c aptitude install imagemagick libmagickwand-dev -y' returned a non-zero code: 255

RUN apt install imagemagick libmagickwand-dev -y
this is my Dockerfile install step

Thank you, the issue has been resolved .
Just add this command to Dockerfile before install imagemagick.

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