PostgreSQL 10在Ubuntu17.10上可用吗?
我检查了APT上的文件夹是否真的存在:http://apt.postgresql.org/pub/repos/apt/dists/artful-pgdg/10/
但在我做完之后:
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ artful-pgdg main"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-10我收到一个错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package postgresql-10上述步骤适用于Ubuntu16.04(使用xenial-pgdg),但对17.10不起作用。
有什么指示吗?
发布于 2017-11-15 17:33:48
我已经在/etc/apt/ worked .list.d/pgdg.list中用z校-pgdg替换了artful,它对我起了作用。
https://wiki.postgresql.org/wiki/Apt/FAQ
的非LTS版本。
Ubuntu的非LTS版本只有在最新的LTS版本中的包与所讨论的版本不兼容时才会添加到存储库中。相反,使用最新的LTS版本通常有效,除非无法满足库依赖,在这种情况下,我们将为非LTS发行版提供更新的包。
https://dba.stackexchange.com/questions/190845
复制相似问题