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.
Use "apt update" to update the index.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"