PostgreSQL 17 apt repo is broken
Closed this issue ยท 5 comments
Hello there)
After the release of the latest versions from 13 to 17, I download the dockerfile for version 17 from dockerhub:
https://github.com/docker-library/postgres/tree/22dad776d9f858f5fb1940ac165be76aa8521e49/17/bookworm
And build the image with the command:
docker build -f Dockerfile -t postgres:17.3-bookworm --no-cache .
So, the problem is:
-
on Saturday, February 15, the image build was successful, log in file: postgres17_ok.txt
-
on Monday, February 17, the same thing doesn't work, log in file: postgres17_fail.txt
I donโt know what happened, but there are no packages for versions 17.0, 17.1, 17.2, 17.3 in the repo there: http://apt.postgresql.org/pub/repos/apt/pool/17/p/postgresql-17/
Now, repo contains only 17rc1 version for all files from 06-Sep-2024 )
Whats going on? Can you fix this?)
PS: please check also repos for debian bullseye, alpine 3.20, alpine 3.21 etc )
This (edit: the APT repos, specifically, to be clear) isn't something we maintain directly (we're downstream consumers of that repo).
My best guess is that there are releases in progress for versions 13 to 17 (note the timestamps on https://git.postgresql.org/gitweb/?p=postgresql.git;a=summary + https://salsa.debian.org/postgresql/postgresql/-/commit/07f97b7a524626d9e0bc4756188ddd884cbc10e4), so they're probably prepping builds.
I've kicked off a fresh build test in https://github.com/docker-library/postgres/actions/runs/13400605924 so I can see whether we can reproduce.
Can't reproduce a failure ๐ so this is likely something that was either transitory and is now resolved or something environmental ๐
Can't reproduce a failure ๐ so this is likely something that was either transitory and is now resolved or something environmental ๐
Why? It's easy to reproduce.
Open the link https://hub.docker.com/_/postgres.
Take the link to the desired docker tag https://github.com/docker-library/postgres/tree/22dad776d9f858f5fb1940ac165be76aa8521e49/17/bookworm.
Run the code:
mkdir postgres17 && cd postgres17
wget https://raw.githubusercontent.com/docker-library/postgres/22dad776d9f858f5fb1940ac165be76aa8521e49/17/bookworm/Dockerfile
wget https://raw.githubusercontent.com/docker-library/postgres/22dad776d9f858f5fb1940ac165be76aa8521e49/17/bookworm/docker-ensure-initdb.sh
wget https://raw.githubusercontent.com/docker-library/postgres/22dad776d9f858f5fb1940ac165be76aa8521e49/17/bookworm/docker-entrypoint.sh
chmod +x docker-ensure-initdb.sh && chmod +x docker-entrypoint.sh
docker build -f Dockerfile -t postgres:17.3 --no-cache .
The build crashes:
...
13.18 + apt-get install -y --no-install-recommends postgresql-17=17.3-1.pgdg120+1
13.19 Reading package lists...
14.01 Building dependency tree...
14.18 Reading state information...
14.18 Package postgresql-17 is not available, but is referred to by another package.
14.18 This may mean that the package is missing, has been obsoleted, or
14.18 is only available from another source
14.18
14.19 E: Version '17.3-1.pgdg120+1' for 'postgresql-17' was not found
Build log: postgres17_output.txt
docker-library/official-images#18482
There are new versions, so you have to go from the latest master commit, not the latest build in DOI
ie, you need a537d60