From b5904999c0f6181a82f1c477562993591f866676 Mon Sep 17 00:00:00 2001 From: Kshiteej K Date: Fri, 14 Nov 2025 03:41:29 +0100 Subject: [PATCH] docker: Fix apt-add-repository (#13213) --- docker/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 408a76890..bd273edbf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -41,7 +41,10 @@ RUN --mount=type=cache,target=/var/cache/apt apt update && apt install wget -y & && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2 \ && update-alternatives --set python3 /usr/bin/python3.12 \ && wget https://bootstrap.pypa.io/get-pip.py \ - && python3 get-pip.py + && python3 get-pip.py \ + # Fix for `apt-add-repository` + && cd /usr/lib/python3/dist-packages/ \ + && ln -s apt_pkg.cpython-310-*-linux-gnu.so apt_pkg.so # Set timezone and install all packages RUN --mount=type=cache,target=/var/cache/apt echo 'tzdata tzdata/Areas select America' | debconf-set-selections \