Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to install postgresql on Ubuntu. I tried installing it using the following command:

apt-get install postgresql

Which results in

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed: postgresql  
0 upgraded, 1 newly installed, 0 to remove and 48 not upgraded.  
Need to get 0B/23.2kB of archives.  
After this operation, 57.3kB of additional disk space will be used.    
debconf: delaying package configuration, since apt-utils is not installed  
Selecting previously deselected package postgresql.  
(Reading database ... 42866 files and directories currently installed.)  
Unpacking postgresql (from .../postgresql_8.4.9-0ubuntu0.10.04_all.deb) ...
Setting up postgresql (8.4.9-0ubuntu0.10.04) ...

But postgresql is not installed properly. I tried purging and reinstalling it. But I am not able to find a solution. I am not able to find postgres under /etc/init.d.

share|improve this question
2  
What exactly do you mean by not installed properly? Do you get an error when you try to run PostgreSQL? Also, what version of Ubuntu are you running? –  Blair Nov 28 '11 at 11:03
    
Hi I am not able to find postgres under /etc/init.d –  ramya Nov 28 '11 at 12:07
    
Version used is #78-Ubuntu SMP –  ramya Nov 28 '11 at 12:13

2 Answers 2

up vote 4 down vote accepted

The postgresql package is just a tiny transitional package which has a Depend set on the real package.

postgresql-8.4 is the real package, is that installed? (it should be, since the one you installed depends on it).

Also, it looks like postgresql simply doesn't have an init.d script. Try:

service postgresql start
share|improve this answer

There is a line

debconf: delaying package configuration, since apt-utils is not installed

This may block the complete configuration of PostgreSQL and other packages, so you should install it, too: apt-utils Install apt-utils

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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