timescale / timescaledb-docker-ha

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

Issue with tzdata dependency (again) #448

Closed kohenkatz closed 6 months ago

kohenkatz commented 6 months ago

I am trying to build using this command:

PLATFORM=aarch64 \
DOCKER_REGISTRY=myregistry.example.com \
DOCKER_REPOSITORY=infrastructure/docker-images/timescaledb-ha \
DOCKER_TAG_POSTFIX=-aarch64 \
make build

I am getting this error:

#27 [builder 23/62] RUN apt-get install -y --allow-downgrades tzdata="2023c-*"
#27 0.244 Reading package lists...
#27 1.212 Building dependency tree...
#27 1.460 Reading state information...
#27 1.468 Package tzdata is not available, but is referred to by another package.
#27 1.468 This may mean that the package is missing, has been obsoleted, or
#27 1.468 is only available from another source
#27 1.468
#27 1.472 E: Version '2023c-*' for 'tzdata' was not found
#27 ERROR: process "/bin/sh -c apt-get install -y --allow-downgrades tzdata=\"2023c-*\"" did not complete successfully: exit code: 100
------
 > [builder 23/62] RUN apt-get install -y --allow-downgrades tzdata="2023c-*":

1.468 Package tzdata is not available, but is referred to by another package.
1.468 This may mean that the package is missing, has been obsoleted, or
1.468 is only available from another source
1.468
1.472 E: Version '2023c-*' for 'tzdata' was not found
------
Dockerfile:156
--------------------
 154 |
 155 |     ## TODO: There's currently a build-dependency problem related to tzdata, remove this when it's resolved
 156 | >>> RUN apt-get install -y --allow-downgrades tzdata="2023c-*"
 157 |
 158 |     # We install the PostgreSQL build dependencies and mark the installed packages as auto-installed,
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get install -y --allow-downgrades tzdata=\"2023c-*\"" did not complete successfully: exit code: 100
make: *** [Makefile:253: build] Error 1

I see that this apt install was added recently in #437, but it looks like tzdata version 2023c might no longer be listed in the package indexes for Ubuntu 22.04.

Any thoughts on how to fix this?

graveland commented 6 months ago

I'll take a look at this today, thanks for reporting it!