ubuntu - installing GeoDjango--postGIS package broken -


in trying install geodjango per the docs, i'm running package dependency issues. i'm using fabric, though doubt that's relevant. understanding after fabtools.require.deb.install('binutils libproj-dev gdal-bin python-gdal libgeoip1') completes successfully, should able install postgis, attempt , output below:

[localhost] sudo: debian_frontend=noninteractive apt-get install --quiet --assume-yes postgresql-9.3-postgis-2.1 [localhost] out: reading package lists... [localhost] out: building dependency tree... [localhost] out: reading state information... [localhost] out: packages not installed. may mean have [localhost] out: requested impossible situation or if using unstable [localhost] out: distribution required packages have not yet been created [localhost] out: or been moved out of incoming. [localhost] out: following information may resolve situation: [localhost] out:  [localhost] out: following packages have unmet dependencies: [localhost] out:  postgresql-9.3-postgis-2.1 : depends: libgdal1 (>= 1.9.0) not going installed [localhost] out:                               recommends: postgis not going installed [localhost] out: e: unable correct problems, have held broken packages. 

this deviation docs themselves, using postgresql-9.3-postgis indicated in docs results in error:

[localhost] sudo: debian_frontend=noninteractive apt-get install --quiet --assume-yes postgresql-9.3-postgis [localhost] out: reading package lists... [localhost] out: building dependency tree... [localhost] out: reading state information... [localhost] out: package postgresql-9.3-postgis not available, referred package. [localhost] out: may mean package missing, has been obsoleted, or [localhost] out: available source [localhost] out:  [localhost] out: e: package 'postgresql-9.3-postgis' has no installation candidate 

which seems less helpful.

here's little of investigating i've done:

$ dpkg --get-selections | grep hold $ dpkg --get-selections | grep gdal gdal-bin                    install libgdal1h                   install python-gdal                 install $ apt show libgdal1h ... replaces: libgdal1 (<= 1.10.0-0~), libgdal1-1.6.0 (<= 1.10.0-0~) ... breaks: libgdal1 (<= 1.10.0-0~), libgdal1-1.6.0 (<= 1.10.0-0~) ... 

so looks libgdal1h issue...or postgresql-9.3-postgis package depends on obsolete package replaced libgdal1h, which, suppose, included in 1 of first packages installed (like gdal-bin). i'm not sure go here...

i've solved issue on ubuntu this

apt-get install postgresql-9.1-postgis-2.1 postgis-doc 

i think can try doing

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

if using postgresql-9.3.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -