error while build of this container
I got docker-compose.yml dockerfile entrypoint.sh webdav.conf from your repo, modified docker-compose.yml for my purposes and run docker buildx build .
and got
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get dist-upgrade -y && apt-get install -y nginx-extras apache2-utils" did not complete successfully: exit code: 100
What happens there. The system of dockerhost is ubuntu jammy
TIA Klaus-Dieter
Same problem here. This is the complete output:
> [2/8] RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y nginx-extras apache2-utils:
0.257 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
0.319 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
0.342 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
0.460 Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8789 kB]
1.193 Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [2468 B]
1.194 Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [204 kB]
2.198 Fetched 9250 kB in 2s (4634 kB/s)
2.198 Reading package lists...
2.654 Reading package lists...
3.116 Building dependency tree...
3.236 Reading state information...
3.269 Calculating upgrade...
3.481 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3.487 Reading package lists...
3.949 Building dependency tree...
4.071 Reading state information...
4.131 Some packages could not be installed. This may mean that you have
4.131 requested an impossible situation or if you are using the unstable
4.131 distribution that some required packages have not yet been created
4.131 or been moved out of Incoming.
4.131 The following information may help to resolve the situation:
4.131
4.131 The following packages have unmet dependencies:
4.227 nginx-extras : Depends: nginx (= 1.22.1-9) but 1.27.2-1~bookworm is to be installed
4.227 Depends: libnginx-mod-http-geoip (= 1.22.1-9) but it is not going to be installed
4.227 Depends: libnginx-mod-http-image-filter (= 1.22.1-9) but it is not going to be installed
4.227 Depends: libnginx-mod-http-perl (= 1.22.1-9) but it is not going to be installed
4.227 Depends: libnginx-mod-http-xslt-filter (= 1.22.1-9) but it is not going to be installed
4.227 Depends: libnginx-mod-mail (= 1.22.1-9) but it is not going to be installed
4.227 Depends: libnginx-mod-stream (= 1.22.1-9) but it is not going to be installed
4.227 Depends: libnginx-mod-stream-geoip (= 1.22.1-9) but it is not going to be installed
4.227 Depends: libnginx-mod-http-auth-pam (>= 1:1.5.3-3~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-cache-purge (>= 1:2.3-4~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-dav-ext (>= 1:3.0.0-3~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-echo (>= 1:0.63-4~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-fancyindex (>= 1:0.5.2-3~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-geoip2 (>= 1:3.4-3~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-headers-more-filter (>= 1:0.34-3~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-lua (>= 1:0.10.23-1~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-subs-filter (>= 1:0.6.4-4~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-uploadprogress (>= 1:0.9.2-3~) but it is not going to be installed
4.227 Depends: libnginx-mod-http-upstream-fair (>= 1:0.0~git20120408.a18b409-3~) but it is not going to be installed
4.227 Depends: libnginx-mod-nchan (>= 1:1.3.6+dfsg-2~) but it is not going to be installed
4.227 Depends: libnginx-mod-stream-geoip2 (>= 1:3.4-3~) but it is not going to be installed
4.231 E: Unable to correct problems, you have held broken packages.
------
1 warning found (use docker --debug to expand):
- JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 21)
Dockerfile:5
--------------------
3 | LABEL maintainer="maltokyo"
4 |
5 | >>> RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y nginx-extras apache2-utils
6 |
7 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get dist-upgrade -y && apt-get install -y nginx-extras apache2-utils" did not complete successfully: exit code: 100
ERROR: Service 'nginx_webdav' failed to build : Build failed
Same problem here. This is the complete output:
> [2/8] RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y nginx-extras apache2-utils: 4.131 The following packages have unmet dependencies: 4.227 nginx-extras : Depends: nginx (= 1.22.1-9) but 1.27.2-1~bookworm is to be installed 4.227 Depends: libnginx-mod-http-geoip (= 1.22.1-9) but it is not going to be installed 4.227 Depends: libnginx-mod-http-image-filter (= 1.22.1-9) but it is not going to be installed 4.227 Depends: libnginx-mod-http-perl (= 1.22.1-9) but it is not going to be installed 4.227 Depends: libnginx-mod-http-xslt-filter (= 1.22.1-9) but it is not going to be installed 4.227 Depends: libnginx-mod-mail (= 1.22.1-9) but it is not going to be installed 4.227 Depends: libnginx-mod-stream (= 1.22.1-9) but it is not going to be installed 4.227 Depends: libnginx-mod-stream-geoip (= 1.22.1-9) but it is not going to be installed 4.227 Depends: libnginx-mod-http-auth-pam (>= 1:1.5.3-3~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-cache-purge (>= 1:2.3-4~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-dav-ext (>= 1:3.0.0-3~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-echo (>= 1:0.63-4~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-fancyindex (>= 1:0.5.2-3~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-geoip2 (>= 1:3.4-3~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-headers-more-filter (>= 1:0.34-3~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-lua (>= 1:0.10.23-1~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-subs-filter (>= 1:0.6.4-4~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-uploadprogress (>= 1:0.9.2-3~) but it is not going to be installed 4.227 Depends: libnginx-mod-http-upstream-fair (>= 1:0.0~git20120408.a18b409-3~) but it is not going to be installed 4.227 Depends: libnginx-mod-nchan (>= 1:1.3.6+dfsg-2~) but it is not going to be installed 4.227 Depends: libnginx-mod-stream-geoip2 (>= 1:3.4-3~) but it is not going to be installed 4.231 E: Unable to correct problems, you have held broken packages. ------ 1 warning found (use docker --debug to expand): - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 21) Dockerfile:5 -------------------- 3 | LABEL maintainer="maltokyo" 4 | 5 | >>> RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y nginx-extras apache2-utils 6 | 7 | -------------------- ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get dist-upgrade -y && apt-get install -y nginx-extras apache2-utils" did not complete successfully: exit code: 100 ERROR: Service 'nginx_webdav' failed to build : Build failed
JFWIW you can work around this by switching from bookwork to bullseye currently. Here in 2025 bookworm is still broken.
Tiny fork / MR: https://github.com/lypanov/docker-nginx-webdav/commit/51482d18c147c8dbe3af444225ae9e600f2d38ec
I created a Alpine-based fork here: https://github.com/sfuhrm/docker-nginx-webdav This is not having build problems.