Installation with Docker fails
I checked out the master branch and ran docker-compose build
. This failed with the following error:
---> Running in 6d2340516120
[...]
Reading state information...
The following additional packages will be installed:
apt-utils dmsetup libapparmor1 libapt-inst2.0 libargon2-1 libcap2
libcryptsetup12 libdevmapper1.02.1 libidn11 libip4tc0 libjson-c3 libkmod2
libssl1.1 systemd
Suggested packages:
systemd-container policykit-1
Recommended packages:
libpam-systemd dbus
The following NEW packages will be installed:
apt-utils dmsetup libapparmor1 libapt-inst2.0 libargon2-1 libcap2
libcryptsetup12 libdevmapper1.02.1 libidn11 libip4tc0 libjson-c3 libkmod2
libssl1.1 local-apt-repository systemd
0 upgraded, 15 newly installed, 0 to remove and 1 not upgraded.
Need to get 6488 kB of archives.
After this operation, 21.8 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libapparmor1 amd64 2.13.2-10 [94.7 kB]
[...]
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
lohrothek-backend-build-deps : Depends: python3-django-mptt but it is not installable
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt update -y && apt install -y --no-install-recommends local-apt-repository && /usr/lib/local-apt-repository/rebuild && apt update -y && apt install -y lohrothek-backend-build-deps && apt-get clean -y' returned a non-zero code: 100
ERROR: Service 'backend' failed to build
The full log is attached below.
I tried to add python3-django-mptt
to the Dockerfile step, but it seems it's not in the buster repos.
Full log
``` ❯ docker-compose build | tee docker-compose-build.log db uses an image, skipping Building backend Sending build context to Docker daemon 9.955MBStep 1/22 : FROM debian:buster-slim AS lohrothek-build-deps ---> 8ae0cebc834a Step 2/22 : ENV DEBIAN_FRONTEND=noninteractive ---> Using cache ---> 95d2d7944a64 Step 3/22 : WORKDIR /usr/src/app ---> Using cache ---> 6a53053cd0d9 Step 4/22 : RUN apt update -y ---> Using cache ---> 3a34c3fd3734 Step 5/22 : RUN apt install -y --no-install-recommends devscripts equivs && apt-get clean -y ---> Using cache ---> 20d9b7f0d1d2 Step 6/22 : COPY ./debian debian ---> Using cache ---> 4db424306f10 Step 7/22 : RUN mk-build-deps debian/control ---> Using cache ---> c67bd005bbca Step 8/22 : FROM debian:buster-slim AS lohrothek-build ---> 8ae0cebc834a Step 9/22 : ENV DEBIAN_FRONTEND=noninteractive ---> Using cache ---> 95d2d7944a64 Step 10/22 : WORKDIR /usr/src/app ---> Using cache ---> 6a53053cd0d9 Step 11/22 : COPY --from=lohrothek-build-deps /usr/src/app/lohrothek-backend-build-deps_*.deb /srv/local-apt-repository/lohrothek-backend-build-deps.deb ---> Using cache ---> 1b83c4792c87 Step 12/22 : RUN apt update -y && apt install -y --no-install-recommends local-apt-repository && /usr/lib/local-apt-repository/rebuild && apt update -y && apt install -y lohrothek-backend-build-deps && apt-get clean -y ---> Running in 6d2340516120
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB] Get:2 http://deb.debian.org/debian buster InRelease [122 kB] Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [308 kB] Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7906 kB] Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [15.2 kB] Fetched 8469 kB in 2s (3473 kB/s) Reading package lists... Building dependency tree... Reading state information... 1 package can be upgraded. Run 'apt list --upgradable' to see it.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
apt-utils dmsetup libapparmor1 libapt-inst2.0 libargon2-1 libcap2
libcryptsetup12 libdevmapper1.02.1 libidn11 libip4tc0 libjson-c3 libkmod2
libssl1.1 systemd
Suggested packages:
systemd-container policykit-1
Recommended packages:
libpam-systemd dbus
The following NEW packages will be installed:
apt-utils dmsetup libapparmor1 libapt-inst2.0 libargon2-1 libcap2
libcryptsetup12 libdevmapper1.02.1 libidn11 libip4tc0 libjson-c3 libkmod2
libssl1.1 local-apt-repository systemd
0 upgraded, 15 newly installed, 0 to remove and 1 not upgraded.
Need to get 6488 kB of archives.
After this operation, 21.8 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libapparmor1 amd64 2.13.2-10 [94.7 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libcap2 amd64 1:2.25-2 [17.6 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 libargon2-1 amd64 020171227-0.2 [19.6 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 dmsetup amd64 2:1.02.155-3 [90.8 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 libdevmapper1.02.1 amd64 2:1.02.155-3 [141 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 libjson-c3 amd64 0.12.1+ds-2+deb10u1 [27.3 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 libssl1.1 amd64 1.1.1d-0+deb10u7 [1539 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 libcryptsetup12 amd64 2:2.1.0-5+deb10u2 [193 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 libidn11 amd64 1.33-2.2 [116 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 libip4tc0 amd64 1.8.2-4 [70.2 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libkmod2 amd64 26-1 [52.7 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 systemd amd64 241-7deb10u8 [3496 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 libapt-inst2.0 amd64 1.8.2.3 [204 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 apt-utils amd64 1.8.2.3 [421 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 local-apt-repository all 0.6 [5840 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 6488 kB in 0s (29.3 MB/s)
Selecting previously unselected package libapparmor1:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 6460 files and directories currently installed.)
Preparing to unpack .../00-libapparmor1_2.13.2-10_amd64.deb ...
Unpacking libapparmor1:amd64 (2.13.2-10) ...
Selecting previously unselected package libcap2:amd64.
Preparing to unpack .../01-libcap2_1%3a2.25-2_amd64.deb ...
Unpacking libcap2:amd64 (1:2.25-2) ...
Selecting previously unselected package libargon2-1:amd64.
Preparing to unpack .../02-libargon2-1_020171227-0.2_amd64.deb ...
Unpacking libargon2-1:amd64 (020171227-0.2) ...
Selecting previously unselected package dmsetup.
Preparing to unpack .../03-dmsetup_2%3a1.02.155-3_amd64.deb ...
Unpacking dmsetup (2:1.02.155-3) ...
Selecting previously unselected package libdevmapper1.02.1:amd64.
Preparing to unpack .../04-libdevmapper1.02.1_2%3a1.02.155-3_amd64.deb ...
Unpacking libdevmapper1.02.1:amd64 (2:1.02.155-3) ...
Selecting previously unselected package libjson-c3:amd64.
Preparing to unpack .../05-libjson-c3_0.12.1+ds-2+deb10u1_amd64.deb ...
Unpacking libjson-c3:amd64 (0.12.1+ds-2+deb10u1) ...
Selecting previously unselected package libssl1.1:amd64.
Preparing to unpack .../06-libssl1.1_1.1.1d-0+deb10u7_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1d-0+deb10u7) ...
Selecting previously unselected package libcryptsetup12:amd64.
Preparing to unpack .../07-libcryptsetup12_2%3a2.1.0-5+deb10u2_amd64.deb ...
Unpacking libcryptsetup12:amd64 (2:2.1.0-5+deb10u2) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../08-libidn11_1.33-2.2_amd64.deb ...
Unpacking libidn11:amd64 (1.33-2.2) ...
Selecting previously unselected package libip4tc0:amd64.
Preparing to unpack .../09-libip4tc0_1.8.2-4_amd64.deb ...
Unpacking libip4tc0:amd64 (1.8.2-4) ...
Selecting previously unselected package libkmod2:amd64.
Preparing to unpack .../10-libkmod2_26-1_amd64.deb ...
Unpacking libkmod2:amd64 (26-1) ...
Selecting previously unselected package systemd.
Preparing to unpack .../11-systemd_241-7deb10u8_amd64.deb ...
Unpacking systemd (241-7deb10u8) ...
Selecting previously unselected package libapt-inst2.0:amd64.
Preparing to unpack .../12-libapt-inst2.0_1.8.2.3_amd64.deb ...
Unpacking libapt-inst2.0:amd64 (1.8.2.3) ...
Selecting previously unselected package apt-utils.
Preparing to unpack .../13-apt-utils_1.8.2.3_amd64.deb ...
Unpacking apt-utils (1.8.2.3) ...
Selecting previously unselected package local-apt-repository.
Preparing to unpack .../14-local-apt-repository_0.6_all.deb ...
Unpacking local-apt-repository (0.6) ...
Setting up libjson-c3:amd64 (0.12.1+ds-2+deb10u1) ...
Setting up libapparmor1:amd64 (2.13.2-10) ...
Setting up libip4tc0:amd64 (1.8.2-4) ...
Setting up libssl1.1:amd64 (1.1.1d-0+deb10u7) ...
Setting up libargon2-1:amd64 (020171227-0.2) ...
Setting up libapt-inst2.0:amd64 (1.8.2.3) ...
Setting up libcap2:amd64 (1:2.25-2) ...
Setting up libidn11:amd64 (1.33-2.2) ...
Setting up libkmod2:amd64 (26-1) ...
Setting up apt-utils (1.8.2.3) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.155-3) ...
Setting up dmsetup (2:1.02.155-3) ...
Setting up libcryptsetup12:amd64 (2:2.1.0-5+deb10u2) ...
Setting up systemd (241-7deb10u8) ...
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /lib/systemd/system/remote-fs.target.
Created symlink /etc/systemd/system/dbus-org.freedesktop.timesync1.service → /lib/systemd/system/systemd-timesyncd.service.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → /lib/systemd/system/systemd-timesyncd.service.
Setting up local-apt-repository (0.6) ...
Created symlink /etc/systemd/system/paths.target.wants/local-apt-repository.path → /lib/systemd/system/local-apt-repository.path.
Processing triggers for libc-bin (2.28-10) ...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 file:/var/lib/local-apt-repository ./ InRelease Ign:1 file:/var/lib/local-apt-repository ./ InRelease Get:2 file:/var/lib/local-apt-repository ./ Release [1279 B] Get:2 file:/var/lib/local-apt-repository ./ Release [1279 B] Get:3 file:/var/lib/local-apt-repository ./ Release.gpg Ign:3 file:/var/lib/local-apt-repository ./ Release.gpg Get:4 file:/var/lib/local-apt-repository ./ Packages [1177 B] Hit:5 http://security.debian.org/debian-security buster/updates InRelease Hit:6 http://deb.debian.org/debian buster InRelease Hit:7 http://deb.debian.org/debian buster-updates InRelease Reading package lists... Building dependency tree... Reading state information... 1 package can be upgraded. Run 'apt list --upgradable' to see it.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: lohrothek-backend-build-deps : Depends: python3-django-mptt but it is not installable E: Unable to correct problems, you have held broken packages. The command '/bin/sh -c apt update -y && apt install -y --no-install-recommends local-apt-repository && /usr/lib/local-apt-repository/rebuild && apt update -y && apt install -y lohrothek-backend-build-deps && apt-get clean -y' returned a non-zero code: 100 ERROR: Service 'backend' failed to build
</details>