在我的Ubuntu 12系统上安装Postgres 12时,在尝试运行许多不同的命令时会出现错误:
sudo apt -y install postgresql-12
sudo apt install postgresql-12以下是我的错误输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
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: libicu60 (>= 60.1-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.发布于 2020-02-03 16:34:59
在/etc/apt/sources.list.d/pgdg文件中,将bionic更改为eoan。
用途:
deb http://apt.postgresql.org/pub/repos/apt/ eoan-pgdg main而不是:
deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg mainhttps://askubuntu.com/questions/1200340
复制相似问题