On 2/24/24 08:43, Peter J. Holzer wrote:
> On 2024-02-22 15:18:37 -0800, Tamal Saha wrote:
>> 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
>
> I don't know about docker images. My answer is for Debian or Ubuntu
> systems in general.
>
>
>> 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?
>
> The current version is 16.2, not 16.1. You appear to have cached an
> obsolete index.
No the OP was looking for that version per their Docker file from this post:
https://www.postgresql.org/message-id/CAA%3DcNux52hkHTJ%2BXRci6OzLMQ1LoMcHE%3DcvXjwwWvYi%3DPt61Vw%40mail.gmail.com
Where:
ENV PG_VERSION 16.1-1.pgdg120+1
<...>
apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; \
apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; \
I pointed them at the repo you get archived versions if that is really
what they want. See:
https://www.postgresql.org/message-id/c7b7aa36-10f7-4b65-9ea9-7f48f285429d%40aklaver.com
>
> Use "apt update" to update the index.
>
> hp
>
--
Adrian Klaver
adrian.klaver@aklaver.com