BtbN / FFmpeg-Builds

MIT License
6.97k stars 956 forks source link

base image build failure: "python3-distutils : Depends: python3-lib2to3 (= 3.12.2-3ubuntu1.1) but it is not going to be installed" #361

Closed bastimeyer closed 2 months ago

bastimeyer commented 2 months ago

Building the base image currently fails with the following error. It still worked fine two days ago.

15.16 Reading package lists...
15.61 Building dependency tree...
15.71 Reading state information...
15.77 Some packages could not be installed. This may mean that you have
15.77 requested an impossible situation or if you are using the unstable
15.77 distribution that some required packages have not yet been created
15.77 or been moved out of Incoming.
15.77 The following information may help to resolve the situation:
15.77 
15.77 The following packages have unmet dependencies:
15.82  python3-distutils : Depends: python3-lib2to3 (= 3.12.2-3ubuntu1.1) but it is not going to be installed
15.82 E: Unable to correct problems, you have held broken packages.
------
WARNING: local cache import at .cache/ghcr.io/btbn/ffmpeg-builds/base_latest not found due to err: could not read .cache/ghcr.io/btbn/ffmpeg-builds/base_latest/index.json: open .cache/ghcr.io/btbn/ffmpeg-builds/base_latest/index.json: no such file or directory
Dockerfile:4
--------------------
   3 |     ENV DEBIAN_FRONTEND noninteractive
   4 | >>> RUN \
   5 | >>>     apt-get -y update && \
   6 | >>>     apt-get -y dist-upgrade && \
   7 | >>>     apt-get -y install build-essential yasm nasm \
   8 | >>>         xxd pkgconf curl wget unzip zip git subversion mercurial rsync jq \
   9 | >>>         autoconf automake libtool libtool-bin autopoint gettext cmake clang meson ninja-build \
  10 | >>>         texinfo texi2html help2man flex bison groff \
  11 | >>>         gperf itstool ragel libc6-dev zlib1g-dev libssl-dev \
  12 | >>>         gtk-doc-tools gobject-introspection gawk \
  13 | >>>         ocaml ocamlbuild libnum-ocaml-dev indent p7zip-full \
  14 | >>>         python3-distutils python3-jinja2 python3-jsonschema python3-apt python-is-python3 && \
  15 | >>>     apt-get -y clean && \
  16 | >>>     git config --global user.email "builder@localhost" && \
  17 | >>>     git config --global user.name "Builder" && \
  18 | >>>     git config --global advice.detachedHead false
  19 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get -y update &&     apt-get -y dist-upgrade &&     apt-get -y install build-essential yasm nasm         xxd pkgconf curl wget unzip zip git subversion mercurial rsync jq         autoconf automake libtool libtool-bin autopoint gettext cmake clang meson ninja-build         texinfo texi2html help2man flex bison groff         gperf itstool ragel libc6-dev zlib1g-dev libssl-dev         gtk-doc-tools gobject-introspection gawk         ocaml ocamlbuild libnum-ocaml-dev indent p7zip-full         python3-distutils python3-jinja2 python3-jsonschema python3-apt python-is-python3 &&     apt-get -y clean &&     git config --global user.email \"builder@localhost\" &&     git config --global user.name \"Builder\" &&     git config --global advice.detachedHead false" did not complete successfully: exit code: 100
+ rm -f /tmp/tmp.w536sel8oY.toml

https://github.com/BtbN/FFmpeg-Builds/blame/0ee6cfa1328de8a0d7d86fe46eca548a3cbea83a/images/base/Dockerfile

This is of course a packaging issue in the ubuntu:24.04 docker image that can trivially be reproduced by running

docker run --rm -it ubuntu:24.04 bash -c 'apt-get update && apt-get -y dist-upgrade && apt-get -y install python3-distutils'

but I just wanted to let you know, in case you can apply a fix here.

BtbN commented 2 months ago

There is no fix to be applied. Ubuntu is still panic-fixing the xz fallout, and broke their apt repos in the process. Nothing to be done but to wait until they fix it.

aesxsc commented 2 months ago

I'm currently getting the same error. Can I revert to an older version of the Ubuntu image in order to make makeimage work again? If I can, how?

chrdev commented 2 months ago

Mod this file

images/base/Dockerfile

FROM ubuntu:24.04

Change 24.04 to 22.04, or 23.10 and try again.

mojie126 commented 2 months ago

Mod this file

images/base/Dockerfile

FROM ubuntu:24.04

Change 24.04 to 22.04, or 23.10 and try again.

wsl, 23.10 is work, but

could not read .cache/ghcr.io/btbn/ffmpeg-builds/base_latest/index.json: open .cache/ghcr.io/btbn/ffmpeg-builds/base_latest/index.json: no such file or directory
BtbN commented 2 months ago

Just pull the image from Github until Ubuntu sorts out their packaging situation. The CI built it successfully, and there will likely not be a base image update until Ubuntu fixed the packages.

aesxsc commented 2 months ago

23.04 version works without any problems. Also I have another question, to build static binaries should I use nonfree-sharedor nonfree? Are there any differences besides one is dynamically linked and one is static?

abrar71 commented 2 months ago

@aesxsc nonfree is the static version where all libraries are compiled within the binary file while nonfree-shared provides the libraries in a separate folder.