{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5509","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5509/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5509/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5509/events","html_url":"https://github.com/travis-ci/travis-ci/issues/5509","id":128506055,"number":5509,"title":"[trusty] postgresql-9.4 postgis-2.1: could not access file \"$libdir/postgis-2.2\":","user":{"login":"johanneswuerbach","id":864578,"avatar_url":"https://avatars.githubusercontent.com/u/864578?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneswuerbach","html_url":"https://github.com/johanneswuerbach","followers_url":"https://api.github.com/users/johanneswuerbach/followers","following_url":"https://api.github.com/users/johanneswuerbach/following{/other_user}","gists_url":"https://api.github.com/users/johanneswuerbach/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneswuerbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneswuerbach/subscriptions","organizations_url":"https://api.github.com/users/johanneswuerbach/orgs","repos_url":"https://api.github.com/users/johanneswuerbach/repos","events_url":"https://api.github.com/users/johanneswuerbach/events{/privacy}","received_events_url":"https://api.github.com/users/johanneswuerbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-25T10:31:23Z","updated_at":"2016-05-03T11:00:55Z","closed_at":null,"body":"When installing postgis for postgres 9.4 manually\r\n```yaml\r\nsudo: required\r\ndist: trusty\r\naddons:\r\n  postgresql: \"9.4\"\r\n  apt:\r\n    packages:\r\n      - postgresql-9.4-postgis-2.1\r\n```\r\nhttps://github.com/travis-ci/travis-ci/issues/5178, I receive now:\r\n\r\n```\r\nCREATE EXTENSION postgis\r\nerror: could not access file \"$libdir/postgis-2.2\": No such file or directory\r\n```\r\n\r\nManually installing `postgis-2.2` resolved the issue:\r\n```yaml\r\nbefore_install:\r\n - export DEBIAN_FRONTEND=noninteractive;\r\n   sudo -E apt-get -yq update &>> ~/apt-get-update.log;\r\n   sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install postgresql-9.4-postgis-2.2\r\n```"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/216495611","html_url":"https://github.com/travis-ci/travis-ci/issues/5509#issuecomment-216495611","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5509","id":216495611,"user":{"login":"arthurlogilab","id":445200,"avatar_url":"https://avatars.githubusercontent.com/u/445200?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurlogilab","html_url":"https://github.com/arthurlogilab","followers_url":"https://api.github.com/users/arthurlogilab/followers","following_url":"https://api.github.com/users/arthurlogilab/following{/other_user}","gists_url":"https://api.github.com/users/arthurlogilab/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurlogilab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurlogilab/subscriptions","organizations_url":"https://api.github.com/users/arthurlogilab/orgs","repos_url":"https://api.github.com/users/arthurlogilab/repos","events_url":"https://api.github.com/users/arthurlogilab/events{/privacy}","received_events_url":"https://api.github.com/users/arthurlogilab/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T11:00:55Z","updated_at":"2016-05-03T11:00:55Z","body":"Another fix is to downgrade to ```postgresql-9.4-postgis-scripts=2.1.4+dfsg-3``` sticking to postgis-2.1"}}