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

"msg": "No package matching 'postgresql-9.5-postgis-2.2-scripts' is available" #156

Closed
mounirmesselmeni opened this issue Feb 21, 2016 · 10 comments

Comments

@mounirmesselmeni
Copy link

mounirmesselmeni commented Feb 21, 2016

Defining:
postgresql_version: 9.5 and postgresql_ext_postgis_version: "2.2" raise No package matching 'postgresql-9.5-postgis-2.2-scripts' is available in Ubuntu

@briandbecker
Copy link

@mounirmesselmeni Can you please provide more information -- like the release of ubuntu? Are you setting a custom postgresql_apt_repository? Have you done an apt-cache search for the package?

@mounirmesselmeni
Copy link
Author

/etc/apt/sources.list.d/apt_postgresql_org_pub_repos_apt.list contains the following:

deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.5

And for Ubuntu release it's the following:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty

@briandbecker
Copy link

@mounirmesselmeni Well I can confirm that package isn't available for me either. Postgresql doesn't seem to have released a postgis 2.2 scripts package. You would need to head over there to find out why.

@briandbecker
Copy link

@mounirmesselmeni actually a little bit of digging turned up this message on the 2.1 scripts package:

Description: PostGIS for PostgreSQL 9.4 -- scripts -- dummy package
This package contained SQL scripts to upgrade from earlier PostGIS
versions for PostgreSQL 9.4 as well as Perl utility scripts.
It got renamed to postgresql-9.4-postgis-scripts.

Seems like - "postgresql-{{postgresql_version}}-postgis-{{postgresql_ext_postgis_version}}-scripts" should be changed to - "postgresql-{{postgresql_version}}-postgis-scripts" in postgresql/tasks/extensions/postgis.yml

@mounirmesselmeni
Copy link
Author

@EasyEcho Make sense and thanks for your help! Should I wait for a new release, propose a patch or fix it locally?

@briandbecker
Copy link

@mounirmesselmeni I think you have enough here to propose a patch. While your waiting for that you can fork the project and make the necessary changes so you don't hold yourself up.

Full disclosure -- I'm not a project maintainer.

@mounirmesselmeni
Copy link
Author

@EasyEcho I have more than enough, thanks again for your help 👍

jalessio added a commit to jalessio/postgresql that referenced this issue Feb 26, 2016
@jalessio
Copy link

@EasyEcho I took your suggested fix and put it into a PR @ #160

jalessio added a commit to UrbanFootprint/ansible-role-postgresql that referenced this issue Feb 26, 2016
@lhoss
Copy link

lhoss commented Mar 31, 2016

👍 to get this issue fixed!
There's another PR for this issue #164 (14d old)
with a bit misleading name (as it's not really a typo , but an outdated package name)
that interestingly shows the travis tests failed, only for ansible 1.9.x for a subset of postgres versions
(seems like a timeout, possibly apt-get waiting for user input?), see:
https://travis-ci.org/ANXS/postgresql/builds/116647257

@gclough
Copy link
Collaborator

gclough commented Mar 23, 2018

Fixed in #310. Can you verify and close this @mounirmesselmeni issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants