键入sudo apt-get install postgresql-11
时出现错误:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql-11 : Depends: postgresql-client-11
Depends: libicu55 (>= 55.1-1~) but it is not installable
Depends: libpq5 (>= 9.3~) but it is not going to be installed
Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
Recommends: sysstat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
如何解决这个错误并最终在我的ubuntu上安装Postgres?
3条答案
按热度按时间e37o9pze1#
要解决未满足的依赖关系错误,只需添加最新的PostgreSQL apt存储库
然后才发出更新命令
之后,在您的情况下,安装postgresql-11
bcs8qyzn2#
我有同样的问题,这是我如何解决它.去https://packages.debian.org/buster/postgresql-11和下载的软件包为我是
libicu63
,然后我手动安装它.运行sudo apt install postgresql
安装最新的postgresql.检查postgresql版本
psql -V
对我来说这就是结果:
psql (PostgreSQL) 15.0 (Debian 15.0-1.pgdg100+1)
i5desfxk3#
试着运行这个命令,然后让我知道你看到了什么。