添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
俊秀的海龟  ·  NodeJs Stream的整理总结 ...·  5 月前    · 
苦恼的山羊  ·  Index of ...·  9 月前    · 
宽容的领带  ·  sql server ...·  12 月前    · 
文质彬彬的拐杖  ·  org.springframework.ht ...·  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.