Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yampa: CI job fails due to missing release file for postgresql repository #284

Closed
ivanperez-keera opened this issue Dec 16, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@ivanperez-keera
Copy link
Owner

The CI jobs are failing because apt-get is trying to update the package db and it's not finding some of the release files:

Err:8 http://apt.postgresql.org/pub/repos/apt bionic-pgdg Release
  404  Not Found [IP: 147.75.85.69 80]
[...]
Reading package lists... Done
E: The repository 'http://apt.postgresql.org/pub/repos/apt bionic-pgdg Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

This error is unrelated to Haskell. It's happening because bionic is no longer supported by postgresql.

Unfortunately, hvr didn't publish all ghc versions we test for in the successor jammy, so have one of three alternatives:

  • Use a different installation tool.
  • Drop support for some versions of GHC (or drop them from the tests).
  • Remove postgresql.

I haven't had good experiences with ghcup, so I prefer, for now, to just remove postgresql since we don't need it.

@ivanperez-keera ivanperez-keera added this to the 0.14.7 milestone Dec 16, 2023
ivanperez-keera added a commit that referenced this issue Dec 16, 2023
…284.

The CI jobs are failing because apt-get is trying to update the package
db and it's not finding some of the release files:

```
Err:8 http://apt.postgresql.org/pub/repos/apt bionic-pgdg Release
  404  Not Found [IP: 147.75.85.69 80]
[...]
Reading package lists... Done
E: The repository 'http://apt.postgresql.org/pub/repos/apt bionic-pgdg Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
```

This error is unrelated to Haskell. It's happening because bionic is no
longer supported by postgresql.

Unfortunately, hvr's repo doesn't provide all GHC versions we test for
in jammy, the successor to Ubuntu bionic.

This commit makes the CI script remove the postgresql repo before
attempting to update the package DB, since we don't need postgresql.
@ivanperez-keera ivanperez-keera self-assigned this Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant