Find the answer to your Linux question:
Results 1 to 3 of 3
Hi every body... I installed postgresql from apt-get with no problems. But then I saw it was the 7.4 version, so I decided to remove the installation to install a ...
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    51

    [SOLVED] Installing PotgreSQL errors

    Hi every body...

    I installed postgresql from apt-get with no problems.
    But then I saw it was the 7.4 version, so I decided to remove the installation to install a newer one.

    I used apt-get remove postgresql command, but then I accidentally removed the /etc/init.d/postgresql daemon....and now I have a lot of problems.

    These are the errors that I have when I try to reinstall postgre from apt-get:
    $ apt-get install postgresql
    Reading Package Lists... Done
    Building Dependency Tree... Done
    ...
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    ...
    Setting up postgresql (7.4.7-6sarge3) ...
    chmod: cannot access `/etc/init.d/postgresql': No such file or directory
    dpkg: error processing postgresql (--configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    postgresql
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    Can anyone help me, please??!!

  2. #2
    Just Joined!
    Join Date
    Sep 2006
    Posts
    5
    I think your problem comes from the fact you did not cleanly remove the package.

    Try this:
    apt-get install --reinstall postgresql

    or you can also follow the above command with these 2:
    apt-get remove --purge postgresql
    apt-get install postgresql

    Hope it helps,

    Cheers,
    Jay
    --

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    51

    It works!!

    Thanks, it works perfectly!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •