我试过:
gsamaras@gsamaras:~$ sudo apt-get install postgresql-9.1-postgis
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package postgresql-9.1-postgis
E: Couldn't find any package by regex 'postgresql-9.1-postgis'
和:
gsamaras@gsamaras:~$ sudo apt-get install postgresql-9.4-postgis-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package postgresql-9.4-postgis-2.1
E: Couldn't find any package by regex 'postgresql-9.4-postgis-2.1'
我发现用户Wiki帖子,但两次尝试都得到以下结果:
E:无法定位包
这问题是相关的,但是当我尝试它的最佳答案时,我收到有关不使用稳定版本的警告。
答案1
PostgreSQL 全球开发小组 (PGDG) 维护着APT 存储库适用于 Debian 和 Ubuntu 的 PostgreSQL 软件包。
在 14.04 中安装:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main" >> /etc/apt/sources.list'
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update && sudo apt-get install postgresql-9.4-postgis-2.1 pgadmin3 postgresql-contrib