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 ...
- 09-20-2006 #1Just 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??!!
- 09-20-2006 #2Just 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
--
- 09-21-2006 #3Just Joined!
- Join Date
- Jul 2006
- Posts
- 51
It works!!
Thanks, it works perfectly!



