[postgis-users] Ubuntu and Postgresql9.1.3-2

Jeff Meyer jeff at gwhat.org
Tue May 29 17:20:11 PDT 2012


Hi Smaran - 

I'm not as familiar with the OpenGeo Suite (but am working on it). 
You've hit a lightweight version of what is known as "dependency hell."

There are a few options here:
1) Wait for the OpenGeo Suite package to be updated for 12.04. I'm not sure what plans are for that. 

2) If you're valiant, you might want to go through and hand-install all of the packages and figure out which packages are causing the problems and see if you can find newer versions of these packages. The specific package list (I believe) is found at: http://apt.opengeo.org/ubuntu/dists/lucid/main/binary-amd64/Packages, and the very first package listed (gdal-mrsid) has this nasty line: "Depends: libgdal (= 1.8.1-1)" when other, more flexible, packages have things like this: "Depends: libgdal (>= 1.8.1-1)"
* It's quite possible that you don't need this gdal-mrsid package to do what you want to do. There don't appear to be any dependencies on gdal-mrsid in the rest of the OpenGeo Suite packages, but you might run into other problems. A quick search of launchpad didn't turn up a newer ppa for gdal-mrsid. You can see that the version at OpenGeo still has this problem:

jeffme at jeffme-vbox:~$ sudo apt-get install gdal-mrsid
[sudo] password for jeffme: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 gdal-mrsid : Depends: libgdal (= 1.8.1-1) but it is not going to be installed
 opengeo-geoserver : Depends: libgdal but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
jeffme at jeffme-vbox:~$ 


That all said, and apologies for the punt, but you'll probably get better answers on an opengeo listserv than here on postgis-users.

Good luck!
Thanks, Jeff




>________________________________
> From: Smaran Harihar <smaran.harihar at gmail.com>
>To: Jeff Meyer <jeff at gwhat.org>; PostGIS Users Discussion <postgis-users at postgis.refractions.net> 
>Sent: Tuesday, May 29, 2012 3:11 PM
>Subject: Re: [postgis-users] Ubuntu and Postgresql9.1.3-2
> 
>
>Hi Jeff,
>
>
>I tried successfully installed PostGIS extension to Postgres database but now when I try to install opengeo-suite, I am getting the following error.
>
>
>
>E: /var/cache/apt/archives/libgdal_1.8.1-1_amd64.deb: trying to overwrite '/usr/lib/libgdal.so.1', which is also in package libgdal1 1.9.0-1~exp5p1
>
>
>Stuck here and not sure where to go?
>
>
>Thanks & Regards,
>Smaran Harihar
>
>
>On Wed, May 23, 2012 at 12:42 PM, Jeff Meyer <jeff at gwhat.org> wrote:
>
>Hi Smaran - 
>>
>>I can't speak to what went wrong during your install, but have you double-checked your ability to add extensions through pgAdmin III?
>>You should be able to open your db, navigate to extensions, right click on the extensions label, and then click "New Extension." If PostGIS isn't listed as a possible extension, then something went wrong in the PostGIS install. 
>>
>>You may want to then do an 'apt-get remove postgis' and then follow the instructions at: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204.
>>Thanks, Jeff
>>
>>
>>
>>
>>>________________________________
>>> From: Smaran Harihar <smaran.harihar at gmail.com>
>>>
>>>To: PostGIS Users Discussion <postgis-users at postgis.refractions.net> 
>>>Sent: Wednesday, May 23, 2012 10:09 AM
>>>
>>>Subject: Re: [postgis-users] Ubuntu and Postgresql9.1.3-2
>>> 
>>>
>>>Hi,
>>>
>>>
>>>I have already installed PostGIS 2.0 and Postgres 9.3.1 using synaptic package manager.
>>>
>>>
>>>Now when I run your commands in psql console,
>>>
>>>
>>>shpRepo=# CREATE EXTENSION postgis;
>>>I am receiving an error,
>>>
>>>
>>>ERROR: could not open extension control file "/usr/share/postgres/9.1/extension/postgis.control": No such file or directory
>>>
>>>
>>>Where did I go wrong?
>>>
>>>
>>>
>>>
>>>
>>>On Wed, May 23, 2012 at 9:58 AM, Brian H Wilson <brian at wildsong.biz> wrote:
>>>
>>>On 5/23/2012 8:08 AM, José María Amuedo wrote:
>>>>
>>>>Someone know how can linstall postgresql-9.1.3-2-linux.run in Ubuntu 12.04?
>>>>>
>>>>>I installed it but I can not to launch stackbuilder to configure new
>>>>>tools like postgis.
>>>>>
>>>>
As Jeff said, installing on Ubuntu 12.04 using apt-get is easy, and I've only used stackbuilder once. You don't really need it.
>>>>
>>>>I like to experiment with the latest so currently I do install PostGIS from sources. The version in the official Ubuntu repository is still at 1.5.3
>>>>
>>>>There are instructions here for PostGIS 2 packages that look pretty promising:
>>>>
>>>>http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204
>>>>
>>>>My own grueling details are here: http://wildsong.biz/index.php/PostGIS
>>>>Feedback welcome.
>>>>
>>>>Hope this helps,
>>>>
>>>>Brian
>>>>
>>>>_______________________________________________
>>>>postgis-users mailing list
>>>>postgis-users at postgis.refractions.net
>>>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>>
>>>
>>>
>>>
>>>-- 
>>>Thanks & Regards
>>>Smaran Harihar
>>>
>>>_______________________________________________
>>>postgis-users mailing list
>>>postgis-users at postgis.refractions.net
>>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>
>>>
>>>
>>_______________________________________________
>>postgis-users mailing list
>>postgis-users at postgis.refractions.net
>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>
>>
>
>
>
>-- 
>Thanks & Regards
>Smaran Harihar
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120529/c453f7f2/attachment.html>


More information about the postgis-users mailing list