在尝试安装postgres时遇到以下错误:
dev@hhhhhhh:~$ sudo apt-get install postgresql-9.6 postgresql-contrib-9.6
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-9.6 : Depends: postgresql-client-9.6
Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but 1.13.2+dfsg-5ubuntu2 is to be installed
Depends: libssl1.1 (>= 1.1.0) but it is not installable
postgresql-contrib-9.6 : Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
我宁愿不开始安装依赖项,在检查是否有人看到此问题或有更好的安装postgres的方法之前,我不知道它们的作用。