从 Ubuntu 18.04 升级到 19.10 后,pgAdmin4 被删除

从 Ubuntu 18.04 升级到 19.10 后,pgAdmin4 被删除

我刚刚从 Ubuntu 18.04 升级到 19.10。升级后,我注意到 pgAdmin4 已被删除,但其他软件仍然存在,现在当我尝试从终端安装 pgadmin4 时,我得到:

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:
 pgadmin4 : Depends: pgadmin4-common (= 4.18-1.pgdg18.04+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我已经安装了 pgadmin3,但我真的想要 pgadmin4。这可能吗?

答案1

据我了解,该pgadmin4包是从第三方存储库安装的。

快速搜索给了我这个页面 -https://atalia.postgresql.org/morgue/p/pgadmin4/

因此您必须打开软件和更新(software-properties-gtk)并启用与上面类似的行。

或者按照说明再次添加此存储库http://wiki.postgresql.org/wiki/Apt

sudo apt-get install curl ca-certificates gnupg lsb-release
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

sudo apt-get update
sudo apt-get install pgadmin4

相关内容