Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 6982  / 3 Years ago, tue, may 25, 2021, 12:56:34

I'm trying to install postgis on Ubuntu 13.04. I've attempted to follow a number of different blogs and wikis on line, but always run in to the same problem...



$sudo apt-get install postgis postgresql-9.1-postgis
....
Package postgresql-9.2-postgis is not available, but is referred to by another
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'postgresql-9.2-postgis' has no installation candidate


So I try 9.1...



$sudo apt-get install postgis postgresql-9.1-postgis
....
The following packages have unmet dependencies:
postgresql-9.1-postgis : Depends: postgresql-9.1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


No luck, so I go looking for postgresql-9.1...



sudo apt-get install postgresql-9.1
...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
postgresql-9.1 : Depends: postgresql-common (>= 115~) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.


So postgresql-common then?



sudo apt-get install postgresql-common
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
postgresql-common : Breaks: logrotate (>= 3.8) but 3.8.3-3ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.


Anyone know what to do?


More From » postgresql

 Answers
4

I have a solution for you that although will not resolve the package problems it will hopefully give you a working postgresql system.



First, uninstall all installed postgresql packages - and I mean both clients and server.



Now download from here the appropriate EnterpeiseDB installer for your system.



Run the installer and you will get a clean postgresql distribution including clients in /opt. You can then select additional software to install through the stackbuilder gui (odbc/jdbc drivers, replication, even an instance of apache web server) The installer also creates a uninstall script, so removing everything is a piece of cake.



I hope you find this helpful.


[#31158] Tuesday, May 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hamostic

Total Points: 403
Total Questions: 142
Total Answers: 112

Location: Iceland
Member since Sat, Sep 17, 2022
2 Years ago
;