在 Ubuntu 20.04 中安装 postgresql 13 时出现未满足的依赖项错误

在 Ubuntu 20.04 中安装 postgresql 13 时出现未满足的依赖项错误

我正在使用本教程在我的 VM 上安装 postgresql,但是当我运行时 https://www.how2shout.com/linux/how-to-install-postgresql-13-on-ubuntu-22-04-lts-linux/

sudo apt install postgresql-13

我收到以下错误

~$ sudo apt install postgresql-13
Reading package lists... Done
Building dependency tree... Done
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-13 : Depends: postgresql-common (>= 182~) but it is not going to be installed
                 Depends: libllvm14 but it is not installable
                 Recommends: sysstat but it is not installable
E: Unable to correct problems, you have held broken packages.

我在这里看到了很多答案,但没有一个能解决这个问题,因此在这里发布。请帮助我理解为什么会发生此问题,并请告诉我可能的解决方案。

相关内容