Home > Net >  The repository 'http://apt.postgresql.org/pub/repos/apt stretch-pgdg Release' does not hav
The repository 'http://apt.postgresql.org/pub/repos/apt stretch-pgdg Release' does not hav

Time:11-17

I am getting an error when trying to install Postgres stretch for Debian. It was working a few days ago and now suddenly the release is not available in the repo.

  404  Not Found [IP: 72.32.157.246 80]

E: The repository 'http://apt.postgresql.org/pub/repos/apt stretch-pgdg Release' does not have a Release file.```

CodePudding user response:

Debian stretch has been removed and no longer supported. You can read more about this here.

In order to continue using Debian stretch, you can get the files from archive by using: deb https://apt-archive.postgresql.org/pub/repos/apt stretch-pgdg main

You can read more about this here.

Alternatively, you could use an alternative listed here.

CodePudding user response:

I have the same problem for Debian

W: The repository 'http://apt.postgresql.org/pub/repos/apt stretch-pgdg Release' does not have a Release file.
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/stretch-pgdg/main/binary-amd64/Packages  404  Not Found [IP: 147.75.85.44 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'db' failed to build: The command '/bin/sh -c apt-get update &&     apt-get install dos2unix &&     apt-get clean' returned a non-zero code: 100

Do you maybe know what should I add to my Dockerfile file to solve this problem?

  • Related