Closed bitsgalore closed 7 months ago
More suggestions here:
Or perhaps a complete reinstall of Docker following:
Tried again on laptop with fresh Docker install (Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1j). Command:
./docker-package.sh debian:bullseye
Result:
1
2
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 216.2MB
Step 1/13 : ARG DIST_ID="debian"
Step 2/13 : ARG CODENAME="bullseye"
Step 3/13 : ARG PKGNAME
Step 4/13 : FROM ${DIST_ID}:${CODENAME} AS dpkg-build
bullseye: Pulling from library/debian
2f088d622efd: Pull complete
Digest: sha256:a4aa0519fbd45786048bbc4daa7092fec803d22463f1cb6c4e7762dcb6a10cf0
Status: Downloaded newer image for debian:bullseye
---> 7dc90053c747
Step 5/13 : ARG CODENAME
---> Running in d991344c3a81
Removing intermediate container d991344c3a81
---> f757ba818f0f
Step 6/13 : ARG PKGNAME
---> Running in 72c95191017b
Removing intermediate container 72c95191017b
---> f4679876e9f3
Step 7/13 : ARG VERSION
---> Running in 47d4bf9725e7
Removing intermediate container 47d4bf9725e7
---> befafe5739da
Step 8/13 : RUN env LANG=C apt-get update -qq -o Acquire::Languages=none && env LANG=C DEBIAN_FRONTEND=noninteractive apt-get install -yqq --no-install-recommends -o Dpkg::Options::=--force-unsafe-io apt-transport-https apt-utils build-essential debhelper devscripts equivs gnupg2 gzip libparse-debianchangelog-perl lintian lsb-release python3-all python3-dev python3-pip python3-pkg-resources python3-setuptools tar libxml2-dev
---> Running in 5a324364b02f
E: Unable to locate package libparse-debianchangelog-perl
The command '/bin/sh -c env LANG=C apt-get update -qq -o Acquire::Languages=none && env LANG=C DEBIAN_FRONTEND=noninteractive apt-get install -yqq --no-install-recommends -o Dpkg::Options::=--force-unsafe-io apt-transport-https apt-utils build-essential debhelper devscripts equivs gnupg2 gzip libparse-debianchangelog-perl lintian lsb-release python3-all python3-dev python3-pip python3-pkg-resources python3-setuptools tar libxml2-dev' returned a non-zero code: 100
Same result for re-running the script for debian:bookworm.
Additional test: removed line that refers to "libparse-debianchangelog-perl" from Dockerfile.build. This does get rid of the error, but ultimately the build fails with:
Step 13/13 : RUN dpkg-buildpackage -tc
---> Running in 5b5f2c615b62
dpkg-buildpackage: info: source package jpylyzer
dpkg-buildpackage: info: source version 2.2.0~rc1
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Johan van der Knijff <johan.vanderknijff@kb.nl>
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: dh-python
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
Added missing dh-python dependency to Dockerfile.build.
After this the build is successful!
Changes:
https://github.com/openpreserve/jpylyzer/commit/a60ee0e753f970a8660a2bb09aa21de7b86cd0f2
Running:
First results in following warning:
Then further on:
Appears to be related to this:
https://serverfault.com/a/1130167
This mentions that Debian 9 (Stretch) is out of LTS, which is confirmed by:
https://www.debian.org/releases/stretch/
It is superseded by Debian 10 (Buster):
https://www.debian.org/releases/buster/
LTS will stop in 2024, so its successor Debian 11 (bullseye) looks like a better option:
https://www.debian.org/releases/bullseye/
In turn this is succeeded by Debian 12 (bookworm).
Tried this:
After this the stretch-related errors disappear, but the following error occurs:
Also the deprecation warning at the start still appears.
After reading this checked for the buildx component:
This turned up nothing (so it's not installed). Installed using:
Result:
So tried:
But now Docker doesn't work anymore!
This askubuntu thread suggests the following command:
Result:
So tried:
Still no luck.