Linux Mint 21
I try to install postgresql 9.6 like this:
sudo apt-get install postgresql-9.6
But get error:
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-9.6 : Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
Depends: libssl1.1 (>= 1.1.0) but it is not installable
Recommends: postgresql-contrib-9.6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt-get install postgresql
? Seems like the package requirements for 9.6 are not OK for your version of distribution.sudo apt-get update
and then install.