Tried several times installing psql in ubuntu 14.04. Failed with this error.

The following packages have unmet dependencies:
postgresql : Depends: postgresql-11 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

  • Do you have any third party repository configured? postgresql-11 should not be in Ubuntu 14.04. Can you edit your question and paste the contents of /etc/apt/sources.list and any file under /etc/apt/sources.list.d/? Can you do sudo apt-get -f install and post the results, too? – Mr Shunz Apr 16 at 9:02
  • deb archive.ubuntu.com/ubuntu trusty main universe restricted multiverse deb-src archive.ubuntu.com/ubuntu trusty main universe restricted multiv$ . this is how sources.list look like – sysadmincrispy Apr 16 at 9:04
  • Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. result of apt-get -f install – sysadmincrispy Apr 16 at 9:05
  • Please don't paste into comments. Edit your questions instead. – Mr Shunz Apr 16 at 9:06

remove the broken packages using the synaptic package manager and retry it. Mostly once the broken packages are removed, It'll install

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.