$ sudo apt-get install postgresql-9.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postgresql-9.4 is not available, but is referred to by another package.
This mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'postgresql-9.4' has no installation candidate我用的是ubuntu 16.04
发布于 2017-02-01 13:00:52
PostgreSQL9.4已在默认Ubuntu16.04存储库中更新为PostgreSQL9.5。要安装它,请打开终端并键入:
sudo apt install postgresql-9.5 PostgreSQL9.x已在默认的Ubuntu17.04和17.10存储库中更新为PostgreSQL9.6。PostgreSQL9.x已在默认Ubuntu18.04存储库中更新为PostgreSQL10。
发布于 2017-02-01 13:01:03
Ubuntu16.04只搭载PostgreSQL 9.5 (postgresql-9.5)。PostgreSQL 9.4在任何受支持的Ubuntu版本中都不可用
如果您不需要一个特殊版本的PostgreSQL,您只需安装包postgresql即可安装您的Ubuntu附带的任何版本。在这种情况下,如果需要,发行版升级将自动升级PostgreSQL。
https://askubuntu.com/questions/878645
复制相似问题