Issue
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.```
Solution
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.
Answered By - UsmanJ Answer Checked By - Gilberto Lyons (WPSolving Admin)