postgresql - E: 包 'postgresql-9.6' 没有安装候选
问题描述
Linux Mint 20.2
我想安装 PostgreSQL 9.6。
这是我的步骤:
sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt/trusty-pgdg main"
sudo apt-get 更新
正在读取包列表...完成 E:存储库“http://apt.postgresql.org/pub/repos/apt uma-pgdg Release”没有发布文件。N:从这样的存储库更新不能安全地完成,因此默认情况下是禁用的。N:有关存储库创建和用户配置的详细信息,请参见 apt-secure(8) 手册页。E:存储库“https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release”没有发布文件。N:从这样的存储库更新不能安全地完成,因此默认情况下是禁用的。N:有关存储库创建和用户配置的详细信息,请参见 apt-secure(8) 手册页。
sudo apt-get install postgresql-9.6
结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postgresql-9.6 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.6' has no installation candidate
解决方案
推荐阅读
- django - 在 openshift 源上安装 numpy
- firebase - 带别名的 Firebase 身份验证 SMTP
- reactjs - 反应路由器 4 上的子路由
- javascript - getBindingContext 返回未定义
- spring-mvc - 使用 Spting MVC 为列表中的每个项目打开新事务
- sql - 可以在powerbuilder中上传一个sql脚本并输出结果吗?
- google-earth-engine - Google Earth Engine:将单波段 ImageCollection 展平为多波段单图像
- javascript - 类范围问题
- apache-spark - 如何计算 pyspark 数据框中 DateType 的 Max(Date) 和 Min(Date)?
- python-2.7 - 返回值包含字符串 pandas 的所有列