docker-library / python

Docker Official Image packaging for Python
https://www.python.org/
MIT License
2.5k stars 1.04k forks source link

ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --fix-missing --no-install-recommends --no-install-suggests build-essential default-libmysqlclient-dev && apt-get clean && rm -rf /var/lib/apt/lists/*" did not co #897

Closed prathyushmadhu closed 6 months ago

prathyushmadhu commented 6 months ago

Dockerfile content and error: Screenshot (33)

I have python version 3.11. I have tried the same with python:3.11-slim-bullseye package. Tried using ubuntu instead of debian. It seems there is no response from the docker hub package ( understood by me ).

ad-m-ss commented 6 months ago

Could you share complete build logs (eg. execute docker build in terminal)?

prathyushmadhu commented 6 months ago

the whole output is given below:

PS E:\Programming files\system_design\python\src\auth> docker build .
[+] Building 0.0s (0/0)  docker:default
[+] Building 107.9s (7/12)                                                                                                                                      docker:default 
 => [internal] load build definition from Dockerfile                                                                                                                      1.9s 
 => => transferring dockerfile: 504B                                                                                                                                      1.2s 
 => [internal] load .dockerignore                                                                                                                                         1.9s 
 => => transferring context: 2B                                                                                                                                           0.6s 
 => [internal] load metadata for docker.io/library/python:3.10-slim-bullseye                                                                                              9.6s 
 => [auth] library/python:pull token for registry-1.docker.io                                                                                                             0.0s 
 => CACHED [1/7] FROM docker.io/library/python:3.10-slim-bullseye@sha256:683079b18a1c86de6a3652cf07e07ebeed7223b69245923939f9c4e4fd1c4b47                                 0.0s 
 => [internal] load build context                                                                                                                                         0.1s 
 => => transferring context: 322B                                                                                                                                         0.1s 
 => ERROR [2/7] RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends --no-install-suggests     build-essential default-libmysqlclient-dev      95.6s 
------
 > [2/7] RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends --no-install-suggests     build-essential default-libmysqlclient-dev     && apt-get clean     && rm -rf /var/lib/apt/lists/*:
4.053 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
4.250 Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
4.385 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
4.921 Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8062 kB]
6.656 Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [263 kB]
6.802 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [18.8 kB]
10.30 Fetched 8552 kB in 7s (1292 kB/s)
10.30 Reading package lists...
13.69 Reading package lists...
15.58 Building dependency tree...
15.91 Reading state information...
16.64 The following additional packages will be installed:
16.64   binutils binutils-common binutils-x86-64-linux-gnu bzip2 cpp cpp-10 dpkg-dev
16.64   g++ g++-10 gcc gcc-10 libasan6 libatomic1 libbinutils libc-dev-bin libc6-dev
16.64   libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libgcc-10-dev
16.64   libgdbm-compat4 libgomp1 libisl23 libitm1 liblsan0 libmariadb-dev
16.64   libmariadb-dev-compat libmariadb3 libmpc3 libmpfr6 libnsl-dev libperl5.32
16.64   libquadmath0 libssl-dev libstdc++-10-dev libtirpc-dev libtsan0 libubsan1
16.66   linux-libc-dev make mariadb-common mysql-common patch perl perl-modules-5.32
16.66   xz-utils zlib1g-dev
16.66 Suggested packages:
16.66   binutils-doc bzip2-doc cpp-doc gcc-10-locales debian-keyring g++-multilib
16.67   g++-10-multilib gcc-10-doc gcc-multilib manpages-dev autoconf automake
16.67   libtool flex bison gdb gcc-doc gcc-10-multilib glibc-doc gnupg
16.67   sensible-utils git bzr libssl-doc libstdc++-10-doc make-doc ed diffutils-doc
16.67   perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl
16.67   libtap-harness-archive-perl
16.67 Recommended packages:
16.67   fakeroot gnupg libalgorithm-merge-perl manpages manpages-dev libc-devtools
16.67   libfile-fcntllock-perl liblocale-gettext-perl
17.42 The following NEW packages will be installed:
17.42   binutils binutils-common binutils-x86-64-linux-gnu build-essential bzip2 cpp
17.42   cpp-10 default-libmysqlclient-dev dpkg-dev g++ g++-10 gcc gcc-10 libasan6
17.42   libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev
17.42   libctf-nobfd0 libctf0 libdpkg-perl libgcc-10-dev libgdbm-compat4 libgomp1
17.42   libisl23 libitm1 liblsan0 libmariadb-dev libmariadb-dev-compat libmariadb3
17.42   libmpc3 libmpfr6 libnsl-dev libperl5.32 libquadmath0 libssl-dev
17.42   libstdc++-10-dev libtirpc-dev libtsan0 libubsan1 linux-libc-dev make
17.42   mariadb-common mysql-common patch perl perl-modules-5.32 xz-utils zlib1g-dev
17.59 0 upgraded, 51 newly installed, 0 to remove and 0 not upgraded.
17.59 Need to get 71.6 MB of archives.
17.59 After this operation, 286 MB of additional disk space will be used.
17.59 Get:1 http://deb.debian.org/debian bullseye/main amd64 perl-modules-5.32 all 5.32.1-4+deb11u2 [2823 kB]
18.38 Get:2 http://deb.debian.org/debian bullseye/main amd64 libgdbm-compat4 amd64 1.19-2 [44.7 kB]
18.52 Get:3 http://deb.debian.org/debian bullseye/main amd64 libperl5.32 amd64 5.32.1-4+deb11u2 [4106 kB]
19.56 Get:4 http://deb.debian.org/debian bullseye/main amd64 perl amd64 5.32.1-4+deb11u2 [293 kB]
19.70 Get:5 http://deb.debian.org/debian bullseye/main amd64 bzip2 amd64 1.0.8-4 [49.3 kB]
19.88 Get:6 http://deb.debian.org/debian bullseye/main amd64 xz-utils amd64 5.2.5-2.1~deb11u1 [220 kB]
20.04 Get:7 http://deb.debian.org/debian bullseye/main amd64 binutils-common amd64 2.35.2-2 [2220 kB]
20.53 Get:8 http://deb.debian.org/debian bullseye/main amd64 libbinutils amd64 2.35.2-2 [570 kB]
20.90 Get:9 http://deb.debian.org/debian bullseye/main amd64 libctf-nobfd0 amd64 2.35.2-2 [110 kB]
21.05 Get:10 http://deb.debian.org/debian bullseye/main amd64 libctf0 amd64 2.35.2-2 [53.2 kB]
21.16 Get:11 http://deb.debian.org/debian bullseye/main amd64 binutils-x86-64-linux-gnu amd64 2.35.2-2 [1809 kB]
21.64 Get:12 http://deb.debian.org/debian bullseye/main amd64 binutils amd64 2.35.2-2 [61.2 kB]
21.82 Get:13 http://deb.debian.org/debian-security bullseye-security/main amd64 libc-dev-bin amd64 2.31-13+deb11u7 [276 kB]
22.00 Get:14 http://deb.debian.org/debian bullseye/main amd64 linux-libc-dev amd64 5.10.197-1 [1668 kB]
22.87 Get:15 http://deb.debian.org/debian bullseye/main amd64 libcrypt-dev amd64 1:4.4.18-4 [104 kB]
23.02 Get:16 http://deb.debian.org/debian bullseye/main amd64 libtirpc-dev amd64 1.3.1-1+deb11u1 [191 kB]
23.21 Get:17 http://deb.debian.org/debian bullseye/main amd64 libnsl-dev amd64 1.3.0-2 [66.4 kB]
23.35 Get:18 http://deb.debian.org/debian-security bullseye-security/main amd64 libc6-dev amd64 2.31-13+deb11u7 [2361 kB]
24.04 Get:19 http://deb.debian.org/debian bullseye/main amd64 libisl23 amd64 0.23-1 [676 kB]
24.24 Get:20 http://deb.debian.org/debian bullseye/main amd64 libmpfr6 amd64 4.1.0-3 [2012 kB]
24.77 Get:21 http://deb.debian.org/debian bullseye/main amd64 libmpc3 amd64 1.2.0-1 [45.0 kB]
24.90 Get:22 http://deb.debian.org/debian bullseye/main amd64 cpp-10 amd64 10.2.1-6 [8528 kB]
26.51 Get:23 http://deb.debian.org/debian bullseye/main amd64 cpp amd64 4:10.2.1-1 [19.7 kB]
26.60 Get:24 http://deb.debian.org/debian bullseye/main amd64 libcc1-0 amd64 10.2.1-6 [47.0 kB]
26.69 Get:25 http://deb.debian.org/debian bullseye/main amd64 libgomp1 amd64 10.2.1-6 [99.9 kB]
26.86 Get:26 http://deb.debian.org/debian bullseye/main amd64 libitm1 amd64 10.2.1-6 [25.8 kB]
26.98 Get:27 http://deb.debian.org/debian bullseye/main amd64 libatomic1 amd64 10.2.1-6 [9008 B]
27.07 Get:28 http://deb.debian.org/debian bullseye/main amd64 libasan6 amd64 10.2.1-6 [2065 kB]
27.52 Get:29 http://deb.debian.org/debian bullseye/main amd64 liblsan0 amd64 10.2.1-6 [828 kB]
27.87 Get:30 http://deb.debian.org/debian bullseye/main amd64 libtsan0 amd64 10.2.1-6 [2000 kB]
28.44 Get:31 http://deb.debian.org/debian bullseye/main amd64 libubsan1 amd64 10.2.1-6 [777 kB]
28.88 Get:32 http://deb.debian.org/debian bullseye/main amd64 libquadmath0 amd64 10.2.1-6 [145 kB]
29.01 Get:33 http://deb.debian.org/debian bullseye/main amd64 libgcc-10-dev amd64 10.2.1-6 [2328 kB]
30.15 Get:34 http://deb.debian.org/debian bullseye/main amd64 gcc-10 amd64 10.2.1-6 [17.0 MB]
33.17 Get:35 http://deb.debian.org/debian bullseye/main amd64 gcc amd64 4:10.2.1-1 [5192 B]
33.26 Get:36 http://deb.debian.org/debian bullseye/main amd64 libstdc++-10-dev amd64 10.2.1-6 [1741 kB]
33.62 Get:37 http://deb.debian.org/debian bullseye/main amd64 g++-10 amd64 10.2.1-6 [9380 kB]
35.26 Get:38 http://deb.debian.org/debian bullseye/main amd64 g++ amd64 4:10.2.1-1 [1644 B]
35.37 Get:39 http://deb.debian.org/debian bullseye/main amd64 make amd64 4.3-4.1 [396 kB]
35.61 Get:40 http://deb.debian.org/debian bullseye/main amd64 libdpkg-perl all 1.20.13 [1552 kB]
36.30 Get:41 http://deb.debian.org/debian bullseye/main amd64 patch amd64 2.7.6-7 [128 kB]
36.44 Get:42 http://deb.debian.org/debian bullseye/main amd64 dpkg-dev all 1.20.13 [2314 kB]
37.81 Get:43 http://deb.debian.org/debian bullseye/main amd64 build-essential amd64 12.9 [7704 B]
37.97 Get:44 http://deb.debian.org/debian bullseye/main amd64 mysql-common all 5.8+1.0.7 [7464 B]
38.07 Get:45 http://deb.debian.org/debian bullseye/main amd64 mariadb-common all 1:10.5.21-0+deb11u1 [37.1 kB]
38.22 Get:46 http://deb.debian.org/debian bullseye/main amd64 libmariadb3 amd64 1:10.5.21-0+deb11u1 [176 kB]
39.58 Get:47 http://deb.debian.org/debian bullseye/main amd64 libssl-dev amd64 1.1.1w-0+deb11u1 [1820 kB]
41.17 Get:48 http://deb.debian.org/debian bullseye/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2+deb11u2 [191 kB]
62.44 Err:49 http://deb.debian.org/debian bullseye/main amd64 libmariadb-dev amd64 1:10.5.21-0+deb11u1
62.44   403  connecting to deb.debian.org:80: connecting to 151.101.158.132:80: dial tcp 151.101.158.132:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 151.101.158.132 80]
63.66 Get:50 http://deb.debian.org/debian bullseye/main amd64 libmariadb-dev-compat amd64 1:10.5.21-0+deb11u1 [35.9 kB]
64.83 Get:51 http://deb.debian.org/debian bullseye/main amd64 default-libmysqlclient-dev amd64 1.0.7 [3936 B]
67.30 debconf: delaying package configuration, since apt-utils is not installed
67.49 Fetched 71.4 MB in 47s (1508 kB/s)
67.59 Selecting previously unselected package perl-modules-5.32.
(Reading database ... 7034 files and directories currently installed.)
67.73 Preparing to unpack .../00-perl-modules-5.32_5.32.1-4+deb11u2_all.deb ...
67.74 Unpacking perl-modules-5.32 (5.32.1-4+deb11u2) ...
69.12 Selecting previously unselected package libgdbm-compat4:amd64.
69.13 Preparing to unpack .../01-libgdbm-compat4_1.19-2_amd64.deb ...
69.16 Unpacking libgdbm-compat4:amd64 (1.19-2) ...
69.23 Selecting previously unselected package libperl5.32:amd64.
69.24 Preparing to unpack .../02-libperl5.32_5.32.1-4+deb11u2_amd64.deb ...
69.25 Unpacking libperl5.32:amd64 (5.32.1-4+deb11u2) ...
70.77 Selecting previously unselected package perl.
70.77 Preparing to unpack .../03-perl_5.32.1-4+deb11u2_amd64.deb ...
70.83 Unpacking perl (5.32.1-4+deb11u2) ...
70.93 Selecting previously unselected package bzip2.
70.94 Preparing to unpack .../04-bzip2_1.0.8-4_amd64.deb ...
70.95 Unpacking bzip2 (1.0.8-4) ...
71.05 Selecting previously unselected package xz-utils.
71.05 Preparing to unpack .../05-xz-utils_5.2.5-2.1~deb11u1_amd64.deb ...
71.06 Unpacking xz-utils (5.2.5-2.1~deb11u1) ...
71.16 Selecting previously unselected package binutils-common:amd64.
71.16 Preparing to unpack .../06-binutils-common_2.35.2-2_amd64.deb ...
71.18 Unpacking binutils-common:amd64 (2.35.2-2) ...
71.84 Selecting previously unselected package libbinutils:amd64.
71.85 Preparing to unpack .../07-libbinutils_2.35.2-2_amd64.deb ...
71.87 Unpacking libbinutils:amd64 (2.35.2-2) ...
72.15 Selecting previously unselected package libctf-nobfd0:amd64.
72.15 Preparing to unpack .../08-libctf-nobfd0_2.35.2-2_amd64.deb ...
72.17 Unpacking libctf-nobfd0:amd64 (2.35.2-2) ...
72.29 Selecting previously unselected package libctf0:amd64.
72.29 Preparing to unpack .../09-libctf0_2.35.2-2_amd64.deb ...
72.35 Unpacking libctf0:amd64 (2.35.2-2) ...
72.47 Selecting previously unselected package binutils-x86-64-linux-gnu.
72.48 Preparing to unpack .../10-binutils-x86-64-linux-gnu_2.35.2-2_amd64.deb ...
72.49 Unpacking binutils-x86-64-linux-gnu (2.35.2-2) ...
73.07 Selecting previously unselected package binutils.
73.08 Preparing to unpack .../11-binutils_2.35.2-2_amd64.deb ...
73.10 Unpacking binutils (2.35.2-2) ...
73.17 Selecting previously unselected package libc-dev-bin.
73.18 Preparing to unpack .../12-libc-dev-bin_2.31-13+deb11u7_amd64.deb ...
73.19 Unpacking libc-dev-bin (2.31-13+deb11u7) ...
73.28 Selecting previously unselected package linux-libc-dev:amd64.
73.28 Preparing to unpack .../13-linux-libc-dev_5.10.197-1_amd64.deb ...
73.29 Unpacking linux-libc-dev:amd64 (5.10.197-1) ...
74.32 Selecting previously unselected package libcrypt-dev:amd64.
74.32 Preparing to unpack .../14-libcrypt-dev_1%3a4.4.18-4_amd64.deb ...
74.35 Unpacking libcrypt-dev:amd64 (1:4.4.18-4) ...
74.42 Selecting previously unselected package libtirpc-dev:amd64.
74.42 Preparing to unpack .../15-libtirpc-dev_1.3.1-1+deb11u1_amd64.deb ...
74.43 Unpacking libtirpc-dev:amd64 (1.3.1-1+deb11u1) ...
74.54 Selecting previously unselected package libnsl-dev:amd64.
74.55 Preparing to unpack .../16-libnsl-dev_1.3.0-2_amd64.deb ...
74.57 Unpacking libnsl-dev:amd64 (1.3.0-2) ...
74.65 Selecting previously unselected package libc6-dev:amd64.
74.65 Preparing to unpack .../17-libc6-dev_2.31-13+deb11u7_amd64.deb ...
74.66 Unpacking libc6-dev:amd64 (2.31-13+deb11u7) ...
76.11 Selecting previously unselected package libisl23:amd64.
76.12 Preparing to unpack .../18-libisl23_0.23-1_amd64.deb ...
76.14 Unpacking libisl23:amd64 (0.23-1) ...
76.45 Selecting previously unselected package libmpfr6:amd64.
76.45 Preparing to unpack .../19-libmpfr6_4.1.0-3_amd64.deb ...
76.46 Unpacking libmpfr6:amd64 (4.1.0-3) ...
76.79 Selecting previously unselected package libmpc3:amd64.
76.80 Preparing to unpack .../20-libmpc3_1.2.0-1_amd64.deb ...
76.83 Unpacking libmpc3:amd64 (1.2.0-1) ...
76.95 Selecting previously unselected package cpp-10.
76.95 Preparing to unpack .../21-cpp-10_10.2.1-6_amd64.deb ...
76.97 Unpacking cpp-10 (10.2.1-6) ...
78.88 Selecting previously unselected package cpp.
78.89 Preparing to unpack .../22-cpp_4%3a10.2.1-1_amd64.deb ...
78.90 Unpacking cpp (4:10.2.1-1) ...
78.98 Selecting previously unselected package libcc1-0:amd64.
78.98 Preparing to unpack .../23-libcc1-0_10.2.1-6_amd64.deb ...
78.99 Unpacking libcc1-0:amd64 (10.2.1-6) ...
79.10 Selecting previously unselected package libgomp1:amd64.
79.10 Preparing to unpack .../24-libgomp1_10.2.1-6_amd64.deb ...
79.14 Unpacking libgomp1:amd64 (10.2.1-6) ...
79.27 Selecting previously unselected package libitm1:amd64.
79.27 Preparing to unpack .../25-libitm1_10.2.1-6_amd64.deb ...
79.28 Unpacking libitm1:amd64 (10.2.1-6) ...
79.39 Selecting previously unselected package libatomic1:amd64.
79.40 Preparing to unpack .../26-libatomic1_10.2.1-6_amd64.deb ...
79.41 Unpacking libatomic1:amd64 (10.2.1-6) ...
79.51 Selecting previously unselected package libasan6:amd64.
79.51 Preparing to unpack .../27-libasan6_10.2.1-6_amd64.deb ...
79.53 Unpacking libasan6:amd64 (10.2.1-6) ...
80.27 Selecting previously unselected package liblsan0:amd64.
80.27 Preparing to unpack .../28-liblsan0_10.2.1-6_amd64.deb ...
80.30 Unpacking liblsan0:amd64 (10.2.1-6) ...
80.66 Selecting previously unselected package libtsan0:amd64.
80.66 Preparing to unpack .../29-libtsan0_10.2.1-6_amd64.deb ...
80.69 Unpacking libtsan0:amd64 (10.2.1-6) ...
81.36 Selecting previously unselected package libubsan1:amd64.
81.36 Preparing to unpack .../30-libubsan1_10.2.1-6_amd64.deb ...
81.38 Unpacking libubsan1:amd64 (10.2.1-6) ...
81.62 Selecting previously unselected package libquadmath0:amd64.
81.63 Preparing to unpack .../31-libquadmath0_10.2.1-6_amd64.deb ...
81.64 Unpacking libquadmath0:amd64 (10.2.1-6) ...
81.70 Selecting previously unselected package libgcc-10-dev:amd64.
81.71 Preparing to unpack .../32-libgcc-10-dev_10.2.1-6_amd64.deb ...
81.71 Unpacking libgcc-10-dev:amd64 (10.2.1-6) ...
82.41 Selecting previously unselected package gcc-10.
82.41 Preparing to unpack .../33-gcc-10_10.2.1-6_amd64.deb ...
82.42 Unpacking gcc-10 (10.2.1-6) ...
86.12 Selecting previously unselected package gcc.
86.13 Preparing to unpack .../34-gcc_4%3a10.2.1-1_amd64.deb ...
86.14 Unpacking gcc (4:10.2.1-1) ...
86.22 Selecting previously unselected package libstdc++-10-dev:amd64.
86.23 Preparing to unpack .../35-libstdc++-10-dev_10.2.1-6_amd64.deb ...
86.24 Unpacking libstdc++-10-dev:amd64 (10.2.1-6) ...
87.35 Selecting previously unselected package g++-10.
87.36 Preparing to unpack .../36-g++-10_10.2.1-6_amd64.deb ...
87.38 Unpacking g++-10 (10.2.1-6) ...
90.06 Selecting previously unselected package g++.
90.07 Preparing to unpack .../37-g++_4%3a10.2.1-1_amd64.deb ...
90.08 Unpacking g++ (4:10.2.1-1) ...
90.17 Selecting previously unselected package make.
90.17 Preparing to unpack .../38-make_4.3-4.1_amd64.deb ...
90.18 Unpacking make (4.3-4.1) ...
90.36 Selecting previously unselected package libdpkg-perl.
90.36 Preparing to unpack .../39-libdpkg-perl_1.20.13_all.deb ...
90.36 Unpacking libdpkg-perl (1.20.13) ...
90.59 Selecting previously unselected package patch.
90.60 Preparing to unpack .../40-patch_2.7.6-7_amd64.deb ...
90.61 Unpacking patch (2.7.6-7) ...
90.73 Selecting previously unselected package dpkg-dev.
90.74 Preparing to unpack .../41-dpkg-dev_1.20.13_all.deb ...
90.77 Unpacking dpkg-dev (1.20.13) ...
91.08 Selecting previously unselected package build-essential.
91.08 Preparing to unpack .../42-build-essential_12.9_amd64.deb ...
91.11 Unpacking build-essential (12.9) ...
91.23 Selecting previously unselected package libmariadb-dev-compat:amd64.
91.23 Preparing to unpack .../43-libmariadb-dev-compat_1%3a10.5.21-0+deb11u1_amd64.deb ...
91.25 Unpacking libmariadb-dev-compat:amd64 (1:10.5.21-0+deb11u1) ...
91.36 Selecting previously unselected package default-libmysqlclient-dev:amd64.
91.36 Preparing to unpack .../44-default-libmysqlclient-dev_1.0.7_amd64.deb ...
91.39 Unpacking default-libmysqlclient-dev:amd64 (1.0.7) ...
91.48 Selecting previously unselected package mysql-common.
91.49 Preparing to unpack .../45-mysql-common_5.8+1.0.7_all.deb ...
91.58 Unpacking mysql-common (5.8+1.0.7) ...
91.69 Selecting previously unselected package mariadb-common.
91.69 Preparing to unpack .../46-mariadb-common_1%3a10.5.21-0+deb11u1_all.deb ...
91.73 Unpacking mariadb-common (1:10.5.21-0+deb11u1) ...
91.79 Selecting previously unselected package libmariadb3:amd64.
91.80 Preparing to unpack .../47-libmariadb3_1%3a10.5.21-0+deb11u1_amd64.deb ...
91.84 Unpacking libmariadb3:amd64 (1:10.5.21-0+deb11u1) ...
91.93 Selecting previously unselected package libssl-dev:amd64.
91.93 Preparing to unpack .../48-libssl-dev_1.1.1w-0+deb11u1_amd64.deb ...
91.95 Unpacking libssl-dev:amd64 (1.1.1w-0+deb11u1) ...
92.42 Selecting previously unselected package zlib1g-dev:amd64.
92.43 Preparing to unpack .../49-zlib1g-dev_1%3a1.2.11.dfsg-2+deb11u2_amd64.deb ...
92.45 Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2+deb11u2) ...
92.63 dpkg: dependency problems prevent configuration of libmariadb-dev-compat:amd64:
92.63  libmariadb-dev-compat:amd64 depends on libmariadb-dev (= 1:10.5.21-0+deb11u1); however:
92.63   Package libmariadb-dev is not installed.
92.63
92.63 dpkg: error processing package libmariadb-dev-compat:amd64 (--configure):
92.63  dependency problems - leaving unconfigured
92.63 Setting up mysql-common (5.8+1.0.7) ...
92.76 update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
92.78 Setting up perl-modules-5.32 (5.32.1-4+deb11u2) ...
92.82 Setting up binutils-common:amd64 (2.35.2-2) ...
92.86 Setting up linux-libc-dev:amd64 (5.10.197-1) ...
92.88 Setting up libctf-nobfd0:amd64 (2.35.2-2) ...
92.90 Setting up libgomp1:amd64 (10.2.1-6) ...
92.94 Setting up bzip2 (1.0.8-4) ...
92.97 Setting up libasan6:amd64 (10.2.1-6) ...
92.98 Setting up mariadb-common (1:10.5.21-0+deb11u1) ...
93.00 update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
93.04 Setting up libtirpc-dev:amd64 (1.3.1-1+deb11u1) ...
93.07 Setting up make (4.3-4.1) ...
93.09 Setting up libmpfr6:amd64 (4.1.0-3) ...
93.11 Setting up xz-utils (5.2.5-2.1~deb11u1) ...
93.14 update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn't exist      
93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn't exist  
93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn't exist  
93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn't exist93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn't exist93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn't exist93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn't exist  
93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn't exist93.14 update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn't exist
93.15 update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn't exist
93.17 Setting up libquadmath0:amd64 (10.2.1-6) ...
93.19 Setting up libssl-dev:amd64 (1.1.1w-0+deb11u1) ...
93.20 Setting up libmpc3:amd64 (1.2.0-1) ...
93.22 Setting up libatomic1:amd64 (10.2.1-6) ...
93.25 Setting up patch (2.7.6-7) ...
93.29 Setting up libmariadb3:amd64 (1:10.5.21-0+deb11u1) ...
93.31 Setting up libgdbm-compat4:amd64 (1.19-2) ...
93.33 Setting up libperl5.32:amd64 (5.32.1-4+deb11u2) ...
93.34 Setting up libubsan1:amd64 (10.2.1-6) ...
93.38 Setting up libnsl-dev:amd64 (1.3.0-2) ...
93.41 Setting up libcrypt-dev:amd64 (1:4.4.18-4) ...
93.43 Setting up libbinutils:amd64 (2.35.2-2) ...
93.45 Setting up libisl23:amd64 (0.23-1) ...
93.48 Setting up libc-dev-bin (2.31-13+deb11u7) ...
93.50 Setting up libcc1-0:amd64 (10.2.1-6) ...
93.52 Setting up liblsan0:amd64 (10.2.1-6) ...
93.54 Setting up cpp-10 (10.2.1-6) ...
93.59 Setting up libitm1:amd64 (10.2.1-6) ...
93.61 Setting up libtsan0:amd64 (10.2.1-6) ...
93.64 Setting up libctf0:amd64 (2.35.2-2) ...
93.65 dpkg: dependency problems prevent configuration of default-libmysqlclient-dev:amd64:
93.65  default-libmysqlclient-dev:amd64 depends on libmariadb-dev-compat; however:
93.65   Package libmariadb-dev-compat:amd64 is not configured yet.
93.65
93.65 dpkg: error processing package default-libmysqlclient-dev:amd64 (--configure):
93.65  dependency problems - leaving unconfigured
93.65 Setting up libgcc-10-dev:amd64 (10.2.1-6) ...
93.69 Setting up perl (5.32.1-4+deb11u2) ...
93.75 Setting up libdpkg-perl (1.20.13) ...
93.77 Setting up cpp (4:10.2.1-1) ...
93.84 Setting up libc6-dev:amd64 (2.31-13+deb11u7) ...
93.87 Setting up binutils-x86-64-linux-gnu (2.35.2-2) ...
93.88 Setting up libstdc++-10-dev:amd64 (10.2.1-6) ...
93.90 Setting up binutils (2.35.2-2) ...
93.98 Setting up dpkg-dev (1.20.13) ...
94.04 Setting up gcc-10 (10.2.1-6) ...
94.06 Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2+deb11u2) ...
94.07 Setting up g++-10 (10.2.1-6) ...
94.09 Setting up gcc (4:10.2.1-1) ...
94.14 Setting up g++ (4:10.2.1-1) ...
94.21 update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
94.39 Setting up build-essential (12.9) ...
94.47 Processing triggers for libc-bin (2.31-13+deb11u7) ...
94.76 Errors were encountered while processing:
94.76  libmariadb-dev-compat:amd64
94.76  default-libmysqlclient-dev:amd64
95.06 E: Failed to fetch http://deb.debian.org/debian/pool/main/m/mariadb-10.5/libmariadb-dev_10.5.21-0%2bdeb11u1_amd64.deb  403  connecting to deb.debian.org:80: connecting to 151.101.158.132:80: dial tcp 151.101.158.132:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 151.101.158.132 80]
95.06 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
Dockerfile:3
--------------------
   2 |     
   3 | >>> RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends --no-install-suggests \
   4 | >>>     build-essential default-libmysqlclient-dev \
   5 | >>>     && apt-get clean \
   6 | >>>     && rm -rf /var/lib/apt/lists/*
   7 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --fix-missing --no-install-recommends --no-install-suggests     build-essential default-libmysqlclient-dev     && apt-get clean     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

View build details: docker-desktop://dashboard/build/default/default/j4q948cgl79bkmkjccrw9zpmu
JamesParrott commented 6 months ago

The problem is nothing to do with the Python docker image or docker file - this issue should be closed.

Prathyush, possibly your machine's architecture does not have a supported binary for a package you need. But you probably just caught the Debian package repository on a bad day (https://packages.debian.org). It occasionally happens.

From Ubuntu I was able just now to successfully run:

sudo docker run --rm -it python:3.10-slim-bullseye bash
apt-get update
apt-get install build-essential
apt-get install default-libmysqlclient-dev

and on Windows I successfully built this minimal Dockerfile containing the step that crashed for you (I copy and pasted the command from your post):

FROM python:3.10-slim-bullseye

RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends --no-install-suggests \
    build-essential default-libmysqlclient-dev \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/

Give it another try.

yosifkit commented 6 months ago

The problem is nothing to do with the Python docker image or docker file - this issue should be closed.

Agreed, this builds fine for me as well.