Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch(build_charm.yaml): Update APT indexes before installing libpq-d…
…ev (#251) This fixes an issue where it fails due to trying to install an older version which no longer exists. See https://github.com/canonical/postgresql-operator/actions/runs/12155829148/job/33898208024 for canonical/postgresql-operator#690 ![OQQmarvpBu](https://github.com/user-attachments/assets/de1bd37b-db24-499d-a425-182cdfe4d460) ``` Reading package lists... Building dependency tree... Reading state information... Suggested packages: postgresql-doc-14 The following NEW packages will be installed: libpq-dev 0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded. Need to get 148 kB of archives. After this operation, 589 kB of additional disk space will be used. Ign:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libpq-dev arm64 14.13-0ubuntu0.22.04.1 Err:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libpq-dev arm64 14.13-0ubuntu0.22.04.1 404 Not Found [IP: 185.125.190.39 80] E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/p/postgresql-14/libpq-dev_14.13-0ubuntu0.22.04.1_arm64.deb 404 Not Found [IP: 185.125.190.39 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Error: Process completed with exit code 100. ``` Where it tries `14.13-0ubuntu0.22.04.1`, but per https://launchpad.net/ubuntu/+source/postgresql-14, it's at `14.15-0ubuntu0.22.04.1`. One other solution is to ensure we always use the daily images.
- Loading branch information