Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Installing a Ruby on Rails Development Environment in Ubuntu

Errors with Installing PostgreSQL

I've followed the instructions for Installing PostgreSQL, but when the install command is entered I get the following:


Setting up postgresql-common (175.pgdg14.04+1) ... /usr/share/postgresql-common/supported-versions: 3: /etc/os-release: OS: not found dpkg: error processing package postgresql-common (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of postgresql-9.5: postgresql-9.5 depends on postgresql-common (>= 158~); however: Package postgresql-common is not configured yet.

dpkg: error processing package postgresql-9.5 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of postgresql: postgresql depends on postgresql-9.5; however: Package postgresql-9.5 is not configured yet.

dpkg: error processing package postgresql (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of postgresql-contrib-9.5: postgresql-contrib-9.5 depends on postgresql-9.5 (= 9.5.3-1.pgdg14.04+1); however: Package postgresql-9.5 is not configured yet.

dpkg: error processing package postgresql-contrib-9.5 (--configure): dependency problems - leaving unconNo apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already figured dpkg: dependency problems prevent configuration of postgresql-contrib: postgresql-contrib depends on postgresql-contrib-9.5; however: Package postgresql-contrib-9.5 is not configured yet.

dpkg: error processing package postgresql-contrib (--configure): dependency problems - leaving unconfigured Processing triggers for ureadahead (0.100.0-16) ... Errors were encountered while processing: postgresql-common postgresql-9.5 postgresql postgresql-contrib-9.5 postgresql-contrib E: Sub-process /usr/bin/dpkg returned an error code (1)


So you can see there is a problem, but not sure how to solve it. As I am using the Ubuntu 14.04 based Zorin 9 Linux.