Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3439  / 3 Years ago, fri, october 15, 2021, 8:20:55

I asked this over on SO, but now I'm thinking the problem is mainly package management and belongs here.



Subsequent to all the detail that can be found in the original post, I have tried (sudo eliminated as redundant):



$ apt list | grep gdal | grep installed
gdal-bin/trusty,now 1.11.0+dfsg-1~exp2~trusty1 amd64 [installed]
libgdal1h/trusty,now 1.11.0+dfsg-1~exp2~trusty1 amd64 [installed,automatic]
$ apt-get purge gdal-bin
$ apt-get purge libdal1h
$ add-apt-repository ppa:ubuntugis/ppa
$ apt-get update
W: Failed to fetch http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found


so clearly something is misconfigured... I don't know what to check for on my side...



then



$ fab vagrant.Provision # see the original question above for what this is doing at the linux level


This still runs into the exact same libdal1 v. libgdal1h dependency issue:



[localhost] sudo: DEBIAN_FRONTEND=noninteractive apt-get install --quiet --assume-yes postgresql-9.3-postgis-2.1
[localhost] out: {...}
[localhost] out: Some packages could not be installed. This may mean that you have
[localhost] out: requested an impossible situation or if you are using the unstable
[localhost] out: distribution that some required packages have not yet been created
[localhost] out: or been moved out of Incoming.
[localhost] out: The following information may help to resolve the situation:
[localhost] out:
[localhost] out: The following packages have unmet dependencies:
[localhost] out: postgresql-9.3-postgis-2.1 : Depends: libgdal1 (>= 1.9.0) but it is not going to be installed
[localhost] out: Recommends: postgis but it is not going to be installed
[localhost] out: E: Unable to correct problems, you have held broken packages.


more info :



vagrant@ubuntu-14:~$ apt-cache policy postgresql-9.3-postgis-2.1
postgresql-9.3-postgis-2.1:
Installed: (none)
Candidate: 2.1.3+dfsg-3.pgdg12.4+2
Version table:
2.1.3+dfsg-3.pgdg12.4+2 0
500 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main amd64 Packages
2.1.2+dfsg-2 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

More From » apt

 Answers
4

The problem, as @saircot895 lead me to discover, was a conflict between the repos. The specifics were not visible in the questions I asked, because I had not delved deeply enough into the Fabric script which was setting up the virtual Ubuntu box in question. In the event, the script was using the older "Precise" release for postgres itself, but postgis was looking on the newer "Trusty". Changing the postgres install (and the rest of the provisioning) to the newer release resolved the issue.


[#24355] Saturday, October 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
repend

Total Points: 195
Total Questions: 113
Total Answers: 107

Location: Nicaragua
Member since Tue, Dec 8, 2020
3 Years ago
;