首页 > 解决方案 > 无法在 Ubuntu 17.10 上使用 postgis 安装 postgres 9.3

问题描述

我正在按照本指南在 ubuntu 17.10 上安装 postgres 9.3,但是在我实际尝试安装的代码行之后(sudo apt-get install postgresql-9.3 pgadmin3)我得到以下输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package postgresql-9.3 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.3' has no installation candidate

另外,我需要安装 postgis,当我输入

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

我得到了同样的错误。谁能帮我?

标签: postgresqlinstallation

解决方案


查看postgres wiki,我能够使用他们在 ubuntu LTS 18 上的快速入门步骤安装 postgresql-9.3;如果你愿意,17 也应该如此。fwiw 我倾向于放弃奇数安装,但我也不必担心你提到的那个扩展。


推荐阅读