相关文章推荐
发呆的黑框眼镜  ·  LeetCode-Python-1328. ...·  10 月前    · 
销魂的棒棒糖  ·  laravel 的EXCEL读写 ...·  1 年前    · 
还单身的红茶  ·  WPF ...·  1 年前    · 
爱看书的乌龙茶  ·  java - ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

When i try to install postgresql-9.6-postgis-2.4, i getting error message like below :

$ sudo apt-get install postgresql-9.6-postgis-2.4`
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.6-postgis-2.4 : Depends: libgdal1h (>= 1.9.0) but it is not going to be installed
                          Depends: libgeos-c1 (>= 3.4.2) but it is not going to be installed
                          Depends: liblwgeom-2.4-0 (>= 2.4.0~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.`

Whats is going on ? Anyone please help me :?

Thanks a lot.

Please do not put "Solved" into the question. Add an answer and accept that. That's the only way to mark a question as "resolved" – user330315 Jan 5, 2018 at 7:30
  • First this my fault, when i install postgresql-9.6 use xenial distribution but when i try install postgresql-9.6-postgis-2.4 i use trusty distribution.

  • I try reinstall with same distribution, use trusty distribution.

  • If you use repository, dont forget to edit source.list on /etc/apt/sources.list.d/postgresql.list

  • I find solution from here

  • Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.