Ant*_*nAL 1 postgresql installation apt ubuntu-16.04
按照https://www.postgresql.org/download/linux/ubuntu/ 中的官方说明,我收到以下错误:
The following packages have unmet dependencies:
postgresql-10 : Depends: postgresql-client-10
Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but 1.13.2+dfsg-5ubuntu2 is to be installed
Depends: libicu60 (>= 60.1-1~) but it is not installable
Depends: libpq5 (>= 9.3~) but it is not going to be installed
Depends: libssl1.1 (>= 1.1.0) but it is not installable
Recommends: sysstat but it is not going to be installed
Run Code Online (Sandbox Code Playgroud)
Linux发行版是: Ubuntu 16.04.5 LTS
我尝试了很多关于清除、升级 apt 的建议,但没有任何帮助。
是否可以在 Ubuntu 16.04.5 LTS 下安装 PostgreSQL 10?
另外,我现在无法安装 PostgreSQL 9.6 版本,AFAIK 是标准配置……
如何恢复到标准版?
Del*_*tik 10
在PostgreSQL: Linux 下载 (Ubuntu) 页面上,您选择了“Bionic (18.04)” 1,这与您的实际 Ubuntu 版本“Xenial (16.04)”不匹配。
假设这是您在以下页面上的说明进行唯一的错误,你可以通过打开这个文件解决这个问题/etc/apt/sources.list.d/pgdg.list的根源,并改变每个提bionic至xenial。
这是您可以运行以立即执行此操作的命令:
sudo sed -i 's/bionic/xenial/g' /etc/apt/sources.list.d/pgdg.list
Run Code Online (Sandbox Code Playgroud)
完成后,您应该可以像这样安装 PostgreSQL 10:
sudo apt update
sudo apt install postgresql-10
Run Code Online (Sandbox Code Playgroud)
1bionic通过检查http://apt.postgresql.org/pub/repos/apt/dists/bionic-pgdg/main/binary-amd64/Packages的内容并查看依赖项,我能够确定您选择了该存储库的Package: postgresql-10匹配您无法解决的依赖关系的列表。
| 归档时间: |
|
| 查看次数: |
6450 次 |
| 最近记录: |