无法安装 pgAdmin III 未满足的依赖项

无法安装 pgAdmin III 未满足的依赖项

我尝试通过命令行或软件中心为我的 ubuntu 17.10 安装 pgAdmin III,但均未成功:

sudo apt-get install pgadmin3

导致

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:
 pgadmin3 : Depends: pgadmin3-data (= 1.22.2-1) but 1.22.2-2.pgdg17.04+1 is to be installed
E: Unable to correct problems, you have held broken packages.

从软件中心安装时,出现错误,如以下屏幕截图所示:

在此处输入图片描述

我该如何检查哪里出了问题并成功安装 pgAdmin III?谢谢。

答案1

sudo aptitude install pgadmin3我最终设法通过使用智能命令而不是来解决我的问题sudo apt-get install pgadmin3

通过使用sudo aptitude install pgadmin3,它帮助建议删除未满足的依赖项并根据需要降级任何包并根据系统要求安装 pgadmin3 版本。

现在我已经成功安装 pgadmin III,谢谢。

相关内容