linuxserver / docker-jellyfin

GNU General Public License v3.0
630 stars 94 forks source link

Build fails on armv7 #153

Closed Gandulf78 closed 2 years ago

Gandulf78 commented 2 years ago

linuxserver.io


Expected Behavior

The build should work with armv7

Current Behavior

The build fails.

Steps to Reproduce

docker buildx build --no-cache --pull --platform linux/arm/v7 -t gandulf78/jellyfin .

Environment

OS: CPU architecture: arm32 How docker service was installed: Docker desktop on MacOS

Command used to create docker container (run/create/compose/screenshot)

git clone https://github.com/linuxserver/docker-jellyfin.git cd docker-jellyfin docker buildx build --no-cache --pull --platform linux/arm/v7 -t linuxserver/jellyfin .

Docker logs

[+] Building 72.6s (6/7)
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.86kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for ghcr.io/linuxserver/baseimage-ubuntu:focal 2.2s => [1/3] FROM ghcr.io/linuxserver/baseimage-ubuntu:focal@sha256:bc955720fae06d2932cc8f24f413614ac86cabc73804dca560dc4a746ca0cef9 7.7s => => resolve ghcr.io/linuxserver/baseimage-ubuntu:focal@sha256:bc955720fae06d2932cc8f24f413614ac86cabc73804dca560dc4a746ca0cef9 0.0s => => sha256:31515282fb33e45c45fb2a3e9d29b7cb0d0b3ae1b9dc6fa166077708205d3b03 11.11kB / 11.11kB 0.0s => => sha256:8ab46f192d0dd4f275bf94c86bcdb31c7b1eb304de7345654b146fcdf48af83a 2.26MB / 2.26MB 0.8s => => sha256:08310abb513cb65cd452b558dc427272890ec408e3ba5e5f195205c98a769171 24.07MB / 24.07MB 3.3s => => sha256:ce42eb046f298f7ffa6e892a93f288d24b163681acc57c573d8f0550e571633a 2.17MB / 2.17MB 0.5s => => sha256:bc955720fae06d2932cc8f24f413614ac86cabc73804dca560dc4a746ca0cef9 1.11kB / 1.11kB 0.0s => => sha256:99460aee05c7c7f89f810347e100594fbe61d15aae6242419751b23e3fe16324 1.79kB / 1.79kB 0.0s => => sha256:0ce6d24138cc2793ca722a42035b7554419ef6e8b163893a0a9d602c926a81c6 413B / 413B 0.8s => => sha256:c290d537623b823c981fc127cb9e8dd2f84c6d470dbfb3b7219b0bf2052110d3 278B / 278B 1.1s => => sha256:696c1372c2c43c97219669bbc6e42ef437c3997ac64558bc2314929623e03563 17.22MB / 17.22MB 4.7s => => sha256:373dd1d285700dbd16ecab9b1737310fa462f4d2d8197f22d365bfcc3fc4507c 3.72kB / 3.72kB 1.4s => => extracting sha256:08310abb513cb65cd452b558dc427272890ec408e3ba5e5f195205c98a769171 1.8s => => extracting sha256:8ab46f192d0dd4f275bf94c86bcdb31c7b1eb304de7345654b146fcdf48af83a 0.1s => => extracting sha256:ce42eb046f298f7ffa6e892a93f288d24b163681acc57c573d8f0550e571633a 0.2s => => extracting sha256:0ce6d24138cc2793ca722a42035b7554419ef6e8b163893a0a9d602c926a81c6 0.0s => => extracting sha256:c290d537623b823c981fc127cb9e8dd2f84c6d470dbfb3b7219b0bf2052110d3 0.0s => => extracting sha256:696c1372c2c43c97219669bbc6e42ef437c3997ac64558bc2314929623e03563 1.0s => => extracting sha256:373dd1d285700dbd16ecab9b1737310fa462f4d2d8197f22d365bfcc3fc4507c 0.0s => [internal] load build context 0.0s => => transferring context: 2.54kB 0.0s => ERROR [2/3] RUN echo " install packages " && apt-get update && apt-get install -y --no-install-recommends gnupg && echo "** install jellyfin ***" && curl -s https://repo.jellyf 62.5s


[2/3] RUN echo " install packages " && apt-get update && apt-get install -y --no-install-recommends gnupg && echo "** install jellyfin ***" && curl -s https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | apt-key add - && echo 'deb [arch=amd64] https://repo.jellyfin.org/ubuntu focal main' > /etc/apt/sources.list.d/jellyfin.list && curl -s https://repositories.intel.com/graphics/intel-graphics.key | apt-key add - && echo 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' > /etc/apt/sources.list.d/intel-graphics.list && if [ -z ${JELLYFIN_RELEASE+x} ]; then JELLYFIN="jellyfin-server"; else JELLYFIN="jellyfin-server=${JELLYFIN_RELEASE}"; fi && apt-get update && apt-get install -y --no-install-recommends at libva2="${INTEL_LIBVA_VER}" libigdgmm11="${INTEL_GMM_VER}" intel-media-va-driver-non-free="${INTEL_iHD_VER}" ${JELLYFIN} jellyfin-ffmpeg jellyfin-web libfontconfig1 libfreetype6 libssl1.1 mesa-va-drivers && echo " cleanup " && rm -rf /tmp/ /var/lib/apt/lists/ /var/tmp/*:

0 0.223 install packages

0 0.779 Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]

0 0.923 Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]

0 0.924 Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]

0 0.926 Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]

0 3.130 Get:5 http://ports.ubuntu.com/ubuntu-ports focal/main armhf Packages [1,227 kB]

0 3.276 Get:6 http://ports.ubuntu.com/ubuntu-ports focal/multiverse armhf Packages [141 kB]

0 3.288 Get:7 http://ports.ubuntu.com/ubuntu-ports focal/universe armhf Packages [10.9 MB]

0 3.724 Get:8 http://ports.ubuntu.com/ubuntu-ports focal/restricted armhf Packages [10.8 kB]

0 5.518 Get:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/main armhf Packages [1,240 kB]

0 5.589 Get:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe armhf Packages [950 kB]

0 5.641 Get:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted armhf Packages [16.4 kB]

0 5.646 Get:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse armhf Packages [9,588 B]

0 7.590 Get:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/main armhf Packages [51.1 kB]

0 7.612 Get:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe armhf Packages [26.0 kB]

0 9.776 Get:15 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted armhf Packages [16.2 kB]

0 9.802 Get:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main armhf Packages [898 kB]

0 9.849 Get:17 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse armhf Packages [4,735 B]

0 9.854 Get:18 http://ports.ubuntu.com/ubuntu-ports focal-security/universe armhf Packages [672 kB]

0 10.24 Fetched 16.8 MB in 10s (1,740 kB/s)

0 10.24 Reading package lists...

0 16.46 Reading package lists...

0 22.34 Building dependency tree...

0 23.04 Reading state information...

0 23.80 gnupg is already the newest version (2.2.19-3ubuntu2.1).

0 23.80 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

0 23.80 ** install jellyfin ***

0 25.40 Warning: apt-key output should not be parsed (stdout is not a terminal)

0 29.17 OK

0 30.92 Warning: apt-key output should not be parsed (stdout is not a terminal)

0 35.22 OK

0 36.55 Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease

0 36.56 Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease

0 36.57 Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease

0 36.57 Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease

0 36.64 Get:5 https://repositories.intel.com/graphics/ubuntu focal InRelease [3,196 B]

0 36.93 Get:6 https://repo.jellyfin.org/ubuntu focal InRelease [6,636 B]

0 47.20 Get:7 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages [184 kB]

0 49.40 Get:8 https://fra1.mirror.jellyfin.org/ubuntu focal/main amd64 Packages [1,677 B]

0 49.50 Fetched 196 kB in 13s (14.7 kB/s)

0 49.50 Reading package lists...

0 55.85 Reading package lists...

0 61.76 Building dependency tree...

0 62.38 Reading state information...

0 62.46 Package jellyfin-server is not available, but is referred to by another package.

0 62.46 This may mean that the package is missing, has been obsoleted, or

0 62.46 is only available from another source

0 62.46

0 62.46 Package jellyfin-ffmpeg is not available, but is referred to by another package.

0 62.46 This may mean that the package is missing, has been obsoleted, or

0 62.46 is only available from another source

0 62.46

0 62.48 E: Version '2.13.0+i643~u20.04' for 'libva2' was not found

0 62.48 E: Unable to locate package libigdgmm11

0 62.48 E: Unable to locate package intel-media-va-driver-non-free

0 62.48 E: Package 'jellyfin-server' has no installation candidate

0 62.48 E: Package 'jellyfin-ffmpeg' has no installation candidate


error: failed to solve: executor failed running [/bin/sh -c echo " install packages " && apt-get update && apt-get install -y --no-install-recommends gnupg && echo "** install jellyfin ***" && curl -s https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | apt-key add - && echo 'deb [arch=amd64] https://repo.jellyfin.org/ubuntu focal main' > /etc/apt/sources.list.d/jellyfin.list && curl -s https://repositories.intel.com/graphics/intel-graphics.key | apt-key add - && echo 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' > /etc/apt/sources.list.d/intel-graphics.list && if [ -z ${JELLYFIN_RELEASE+x} ]; then JELLYFIN="jellyfin-server"; else JELLYFIN="jellyfin-server=${JELLYFIN_RELEASE}"; fi && apt-get update && apt-get install -y --no-install-recommends at libva2="${INTEL_LIBVA_VER}" libigdgmm11="${INTEL_GMM_VER}" intel-media-va-driver-non-free="${INTEL_iHD_VER}" ${JELLYFIN} jellyfin-ffmpeg jellyfin-web libfontconfig1 libfreetype6 libssl1.1 mesa-va-drivers && echo " cleanup " && rm -rf /tmp/ /var/lib/apt/lists/ /var/tmp/*]: exit code: 100

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

Roxedus commented 2 years ago

You need to use the Dockerfile.armhf file when building for 32 bit arm.

Gandulf78 commented 2 years ago

Thank you. You’re right: it worked.

On Apr 24, 2022 at 7:32 PM, <Roxedus @.***)> wrote:

You need to use the Dockerfile.armhf file when building for 32 bit arm.

— Reply to this email directly, view it on GitHub (https://github.com/linuxserver/docker-jellyfin/issues/153#issuecomment-1107884345), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AKQTQ7VVFSDUQEQPUQ6OMSDVGWAQ3ANCNFSM5UGQ7QQQ). You are receiving this because you authored the thread.Message ID: @.***>