PostGIS addon for PostgreSQL 10 started failing

Hello!

Since this Monday (26-08-2019) I have problems with installing postgresql-10-postgis-2.4 in my Travis build. Installation process started failing with the error:

E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/main/binary-amd64/Packages.bz2 Hash Sum mismatch
208E: Some index files failed to download. They have been ignored, or old ones used instead.
209The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-10-postgis-2.4" failed and exited with 100 during .

Before this week the installation worked without errors. This error is floating - it appears not every time and sometimes disappears after restarting the build.
Relevant .travis.yml part:

dist: xenial
sudo: required
language: python
python: 3.7
services:
  - postgresql

addons:
  postgresql: "10"
  apt:
    packages:
    - postgresql-10-postgis-2.4

Link to the build

From reading the reply on the last link you sent it looks like the issue is on Travis’ side.

Closing here because it’s a caching issue on the Travis side. Travis should properly mirror our repository using debmirror if they want caching.

Thoughts?

postgis v2.4 seems unsupported so I just switched to v3 (postgresql-10-postgis-3) which seems to have worked