timescale / timescaledb-docker-ha

Create Docker images containing TimescaleDB, Patroni to be used by developers and Kubernetes.
Apache License 2.0
143 stars 38 forks source link

Unable to build image. Issue with tzdata dependency #436

Closed ap-ms closed 5 months ago

ap-ms commented 5 months ago

See same issue with master and a few of the latest tags.

I see the error below using make build or make build-oss.

 > [builder 23/61] RUN set -eux;     for pg in 16; do         mk-build-deps postgresql-${pg} && apt-get install -y ./postgresql-${pg}-build-deps*.deb && apt-mark auto postgresql-${pg}-build-deps || exit 1;     done:
3.804 requested an impossible situation or if you are using the unstable
3.804 distribution that some required packages have not yet been created
3.804 or been moved out of Incoming.
3.804 The following information may help to resolve the situation:
3.804 
3.804 The following packages have unmet dependencies:
3.897  postgresql-16-build-deps : Depends: tzdata-legacy but it is not installable or
3.897                                      tzdata (< 2023c-8) but 2023d-0ubuntu0.22.04 is to be installed
3.898 E: Unable to correct problems, you have held broken packages.
3.900 + exit 1
------
Dockerfile:155
--------------------
 154 |     # We install the PostgreSQL build dependencies and mark the installed packages as auto-installed,
 155 | >>> RUN set -eux; \
 156 | >>>     for pg in ${PG_VERSIONS}; do \
 157 | >>>         mk-build-deps postgresql-${pg} && apt-get install -y ./postgresql-${pg}-build-deps*.deb && apt-mark auto postgresql-${pg}-build-deps || exit 1; \
 158 | >>>     done
 159 |     
--------------------

I tried modifying the ENV BUILD_PACKAGES to include tzdata but still see same issue so I'm not quite sure what needs to be done. tzdata-legacy can't be found and I assume I would have to add another repository source but not sure if I need to go that far.

graveland commented 5 months ago

Likewise, our build started failing a couple days ago. I'm looking into it!