[gdal-dev] Error when trying to build Docker Images

Dirk Stenger stenger at lat-lon.de
Tue Feb 14 10:13:30 PST 2023


Hi,

No, it is an amd64 system.

Regards,

Dirk



Am 14.02.23 um 19:00 schrieb Dirk Stenger:
>
> All,
>
> Unfortunately, when trying to build the GDAL Docker Image on a local 
> machine (Ubuntu 22.04), the build fails with an error:
>
> Executed commands and logging:
>
> ~/git/gdal/docker/ubuntu-small$ ./build.sh
> ...
> debconf: delayingpackage  configuration, since apt-utils is not installed
> Fetched 70.5 MB in 39s (1795 kB/s)
> Selecting previously unselectedpackage  libpython3.10-minimal:arm64.
> (Reading database ... 19054 files and directories currently installed.)
> Preparing to unpack .../libpython3.10-minimal_3.10.6-1~22.04.2_arm64.deb ...
> Unpacking libpython3.10-minimal:arm64 (3.10.6-1~22.04.2) ...
> Selecting previously unselectedpackage  libexpat1:arm64.
> Preparing to unpack .../libexpat1_2.4.7-1ubuntu0.2_arm64.deb ...
> Unpacking libexpat1:arm64 (2.4.7-1ubuntu0.2) ...
> Selecting previously unselectedpackage  python3.10-minimal:arm64.
> Preparing to unpack .../python3.10-minimal_3.10.6-1~22.04.2_arm64.deb ...
> Unpacking python3.10-minimal:arm64 (3.10.6-1~22.04.2) ...
> Setting up libpython3.10-minimal:arm64 (3.10.6-1~22.04.2) ...
> Setting up libexpat1:arm64 (2.4.7-1ubuntu0.2) ...
> Setting up python3.10-minimal:arm64 (3.10.6-1~22.04.2) ...
> /var/lib/dpkg/info/python3.10-minimal.postinst: 51: /usr/bin/python3.10: Exec format error
> dpkg: error processingpackage  python3.10-minimal:arm64 (--configure):
>   installed python3.10-minimal:arm64package  post-installation script subprocess returned error exit status 126
> Errors were encounteredwhile  processing:
>   python3.10-minimal:arm64
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> The command'/bin/sh -c . /buildscripts/bh-set-envvars.sh     && apt-get update -y 
>     && DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing 
> --no-install-recommends        python3-dev${APT_ARCH_SUFFIX} 
> python3-numpy${APT_ARCH_SUFFIX} python3-setuptools${APT_ARCH_SUFFIX}   
>      libjpeg-dev${APT_ARCH_SUFFIX} libgeos-dev${APT_ARCH_SUFFIX}       
>  libexpat-dev${APT_ARCH_SUFFIX} libxerces-c-dev${APT_ARCH_SUFFIX}     
>    libwebp-dev${APT_ARCH_SUFFIX} libpng-dev${APT_ARCH_SUFFIX}       
>  libzstd-dev${APT_ARCH_SUFFIX} bash zip curl       
>  libpq-dev${APT_ARCH_SUFFIX} libssl-dev${APT_ARCH_SUFFIX} 
> libopenjp2-7-dev${APT_ARCH_SUFFIX}       
>  libspatialite-dev${APT_ARCH_SUFFIX}        autoconf automake sqlite3 
> bash-completion'  returned a non-zero code: 100
>
> The same behavior occurs with ubuntu-full:
>
> ~/git/gdal/docker/ubuntu-full$ ./build.sh
> ...
> debconf: delayingpackage  configuration, since apt-utils is not installed
> Fetched 466 MB in 3min 39s (2128 kB/s)
> Selecting previously unselectedpackage  libcap2:arm64.
> (Reading database ... 19051 files and directories currently installed.)
> Preparing to unpack .../libcap2_1%3a2.44-1build3_arm64.deb ...
> Unpacking libcap2:arm64 (1:2.44-1build3) ...
> Selecting previously unselectedpackage  libgpg-error0:arm64.
> Preparing to unpack .../libgpg-error0_1.43-3_arm64.deb ...
> Unpacking libgpg-error0:arm64 (1.43-3) ...
> Selecting previously unselectedpackage  libgcrypt20:arm64.
> Preparing to unpack .../libgcrypt20_1.9.4-3ubuntu3_arm64.deb ...
> Unpacking libgcrypt20:arm64 (1.9.4-3ubuntu3) ...
> Selecting previously unselectedpackage  liblz4-1:arm64.
> Preparing to unpack .../liblz4-1_1.9.3-2build2_arm64.deb ...
> Unpacking liblz4-1:arm64 (1.9.3-2build2) ...
> Setting up libcap2:arm64 (1:2.44-1build3) ...
> Setting up libgpg-error0:arm64 (1.43-3) ...
> Setting up libgcrypt20:arm64 (1.9.4-3ubuntu3) ...
> Setting up liblz4-1:arm64 (1.9.3-2build2) ...
> Selecting previously unselectedpackage  libsystemd0:arm64.
> (Reading database ... 19059 files and directories currently installed.)
> Preparing to unpack .../libsystemd0_249.11-0ubuntu3.6_arm64.deb ...
> Unpacking libsystemd0:arm64 (249.11-0ubuntu3.6) ...
> Selecting previously unselectedpackage  libpython3.10-minimal:arm64.
> Preparing to unpack .../libpython3.10-minimal_3.10.6-1~22.04.2_arm64.deb ...
> Unpacking libpython3.10-minimal:arm64 (3.10.6-1~22.04.2) ...
> Selecting previously unselectedpackage  libexpat1:arm64.
> Preparing to unpack .../libexpat1_2.4.7-1ubuntu0.2_arm64.deb ...
> Unpacking libexpat1:arm64 (2.4.7-1ubuntu0.2) ...
> Selecting previously unselectedpackage  python3.10-minimal:arm64.
> Preparing to unpack .../python3.10-minimal_3.10.6-1~22.04.2_arm64.deb ...
> Unpacking python3.10-minimal:arm64 (3.10.6-1~22.04.2) ...
> Setting up libpython3.10-minimal:arm64 (3.10.6-1~22.04.2) ...
> Setting up libexpat1:arm64 (2.4.7-1ubuntu0.2) ...
> Setting up python3.10-minimal:arm64 (3.10.6-1~22.04.2) ...
> /var/lib/dpkg/info/python3.10-minimal.postinst: 51: /usr/bin/python3.10: Exec format error
> dpkg: error processingpackage  python3.10-minimal:arm64 (--configure):
>   installed python3.10-minimal:arm64package  post-installation script subprocess returned error exit status 126
> Errors were encounteredwhile  processing:
>   python3.10-minimal:arm64
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> The command'/bin/sh -c . /buildscripts/bh-set-envvars.sh     && apt-get update -y 
>     && DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing 
> --no-install-recommends        libopenjp2-7-dev${APT_ARCH_SUFFIX} 
> libcairo2-dev${APT_ARCH_SUFFIX}        python3-dev${APT_ARCH_SUFFIX} 
> python3-numpy${APT_ARCH_SUFFIX} python3-setuptools${APT_ARCH_SUFFIX}   
>      libpng-dev${APT_ARCH_SUFFIX} libjpeg-dev${APT_ARCH_SUFFIX} 
> libgif-dev${APT_ARCH_SUFFIX} liblzma-dev${APT_ARCH_SUFFIX} 
> libgeos-dev${APT_ARCH_SUFFIX}        curl 
> libxml2-dev${APT_ARCH_SUFFIX} libexpat-dev${APT_ARCH_SUFFIX} 
> libxerces-c-dev${APT_ARCH_SUFFIX}       
>  libnetcdf-dev${APT_ARCH_SUFFIX} libpoppler-dev${APT_ARCH_SUFFIX} 
> libpoppler-private-dev${APT_ARCH_SUFFIX}       
>  libspatialite-dev${APT_ARCH_SUFFIX} 
> librasterlite2-dev${APT_ARCH_SUFFIX} swig ant 
> libhdf4-alt-dev${APT_ARCH_SUFFIX} libhdf5-serial-dev${APT_ARCH_SUFFIX} 
>        libfreexl-dev${APT_ARCH_SUFFIX} unixodbc-dev${APT_ARCH_SUFFIX} 
>  mdbtools-dev${APT_ARCH_SUFFIX} libwebp-dev${APT_ARCH_SUFFIX}       
>  liblcms2-2 libpcre3-dev${APT_ARCH_SUFFIX} 
> libcrypto++-dev${APT_ARCH_SUFFIX} libfyba-dev${APT_ARCH_SUFFIX}       
>  libkml-dev${APT_ARCH_SUFFIX} libmysqlclient-dev${APT_ARCH_SUFFIX} 
> libogdi-dev${APT_ARCH_SUFFIX}        libcfitsio-dev${APT_ARCH_SUFFIX} 
> openjdk-"$JAVA_VERSION"-jdk${APT_ARCH_SUFFIX} 
> libzstd-dev${APT_ARCH_SUFFIX}        libpq-dev${APT_ARCH_SUFFIX} 
> libssl-dev${APT_ARCH_SUFFIX} libboost-dev${APT_ARCH_SUFFIX}       
>  autoconf automake bash-completion libarmadillo-dev${APT_ARCH_SUFFIX} 
>        libopenexr-dev${APT_ARCH_SUFFIX} libheif-dev${APT_ARCH_SUFFIX} 
>        libdeflate-dev${APT_ARCH_SUFFIX} libblosc-dev${APT_ARCH_SUFFIX} 
> liblz4-dev${APT_ARCH_SUFFIX} libbz2-dev${APT_ARCH_SUFFIX}       
>  libbrotli-dev${APT_ARCH_SUFFIX}       
>  libarchive-dev${APT_ARCH_SUFFIX}     && rm -rf /var/lib/apt/lists/*'  returned a non-zero code: 100
>
> This is the used Docker version:
>
> docker --version
> Docker version 20.10.17, build 100c701
>
> I tried to build the /master/ branch and /release/3.5/ branch.
>
> Can anyone help why the build is failing?
>
> Kind regards,
>
> Dirk Stenger 

-- 
l a t / l o n  GmbH
Im Ellig 1                           53343 Wachtberg, Germany
phone ++49 +228 24 333 784
http://www.lat-lon.de                   http://www.deegree.org

lat/lon gesellschaft für raumbezogene informationssysteme mbH
Registergericht: Amtsgericht Bonn, HRB 13042
Geschäftsführer: Jens Fitzke und Torsten Friebe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230214/05c5804e/attachment.htm>


More information about the gdal-dev mailing list