Tecnativa / doodba

Base image for making the creation of customized Odoo environments a piece of cake
Apache License 2.0
432 stars 304 forks source link

[FIX] stretch: use apt-archive for postgres in stretch #528

Closed ap-wtioit closed 1 year ago

ap-wtioit commented 1 year ago

https://www.postgresql.org/message-id/Y2kmqL%2BpCuSZiQBV%40msg.df7cb.de

Postgres no longer maintains debian stretch on their apt repos and moved the old packages to apt-archive.

On our CI this failed with the following error before the fix:

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.69 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

info @wt-io-it

ap-wtioit commented 1 year ago

updated urls to http (instead of https) because of:

#6 78.48 E: The method driver /usr/lib/apt/methods/https could not be found.

didn't help, the http url is redirecting to https. added apt-transport-https and ca-certificates to be able to use https in apt.