On 2/22/24 15:18, Tamal Saha wrote:
Hi Adrian,
Thanks for the response. I am trying to build the postgres:16.1 docker
image and it fails. This is the docker file (I am not associated with
Docker Inc.).
https://github.com/docker-library/postgres/blob/d416768b1a7f03919b9cf0fef6adc9dcad937888/16/bookworm/Dockerfile#L93 <https://mailtrack.io/l/26db4dd8a92ebdf155ab4f61cbc7ae8d4863445b?url=https%3A%2F%2Fgithub.com%2Fdocker-library%2Fpostgres%2Fblob%2Fd416768b1a7f03919b9cf0fef6adc9dcad937888%2F16%2Fbookworm%2FDockerfile%23L93&u=3471932&signature=5f13fc03adc60ed9>
I get the following error
6.976 Package postgresql-16 is not available, but is referred to by
another package.
6.976 This may mean that the package is missing, has been obsoleted, or
6.976 is only available from another source
6.976
6.980 E: Version '16.1-1.pgdg120+1' for 'postgresql-16' was not found
How may I fix this?
https://wiki.postgresql.org/wiki/Apt/FAQ#I_want_only_specific_packages_from_this_repository
Where are older versions of the packages?
The *-pgdg distributions only contain the most recent version of each
package. Older versions are available in the archive at
https://apt-archive.postgresql.org/
https://apt-archive.postgresql.org/
Archive of all released packages on apt.postgresql.org
The archive also contains all versions of all packages that have been
part of some DIST-pgdg distribution on apt.postgresql.org. These
distributions are called DIST-pgdg-archive here. The archive is updated
daily; the Packages/Sources files contain all versions at once.
/etc/apt/sources.list entry for the archive repository:
deb https://apt-archive.postgresql.org/pub/repos/apt DIST-pgdg-archive main
deb-src https://apt-archive.postgresql.org/pub/repos/apt
DIST-pgdg-archive main
Regards,
Tamal
--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx