All threads / install postgresql showing errors.

Ask A Question

Notifications

You’re not receiving notifications from this thread.

install postgresql showing errors.

SMEHSAN asked in General

Hello,
I am trying to deploy my rails app on digital ocean. and am following this article https://gorails.com/deploy/ubuntu/18.04
but when i am trying to run this command sudo apt-get install postgresql postgresql-contrib libpq-dev
it is showing the following errors.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpq-dev is already the newest version (11.2-1.pgdg16.04+1).
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 : Depends: postgresql-11 but it is not going to be installed
 postgresql-contrib : Depends: postgresql-contrib-11
E: Unable to correct problems, you have held broken packages.

What is the problem an what should i do.

[I am workign with my new user, not in root user]

Thank you

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.