Sunday, May 19, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 8715  / 2 Years ago, wed, october 12, 2022, 8:36:51

I've installed PostgreSQL v9.3 (database) on Ubuntu 14.04 and I'm currently attempting to install the following:



sudo apt-get install postgresql-9.3-postgis-2.1


However I'm getting the following error:




The following packages have unmet dependencies:
postgresql-9.3-postgis-2.1 : Depends: libgdal1h (>= 1.9.0) but it is
not installable
Depends: libgeos-c1 (>= 3.4.2) but it is not going to be installed
Depends: liblwgeom-2.1.7 (>= 2.1.6) but it is not going to be installed
Depends: libproj0 (>= 4.8.0-1) but it is not installable E: Unable to correct problems, you have held broken
packages.




Please Note: I have already successfully installed the following:



sudo apt-get install postgresql-9.3 
sudo apt-get install postgresql-contrib-9.3
sudo apt-get install postgresql-9.3-postgis-2.1-scripts


How can I solve this?


More From » package-management

 Answers
0

After some additional research I found the answer via the following questions
How do I resolve unmet dependencies after adding a PPA? which can be applied to this question as a solution.



In your terminal run



software-properties-gtk


Under Ubuntu Software tab, enable all the repositories



Next run



sudo apt-get update    
sudo apt-get upgrade


Finally run



sudo apt-get install  postgresql-9.3-postgis-2.1


Worked successfully for me I hope this helps someone with the same issue install postgresql-9.3-postgis-2.1 with unmet dependencies on Ubuntu 14.04


[#19570] Thursday, October 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
polcomposte

Total Points: 421
Total Questions: 92
Total Answers: 109

Location: Uzbekistan
Member since Mon, Jul 20, 2020
4 Years ago
polcomposte questions
Wed, Dec 14, 22, 02:45, 1 Year ago
Sat, Apr 9, 22, 01:36, 2 Years ago
Mon, Dec 26, 22, 01:52, 1 Year ago
Fri, May 20, 22, 12:03, 2 Years ago
;