Package manager borked with gforge
- by Leif Andersen
I've been having a problem with the package manager. I seemed to have installed gforge, partially, but it keeps giving me errors whenever I install something. (Note that the thing I'm trying to install actually does get installed, but there is always an error returned).
Here it is:
Creating /etc/gforge/httpd.conf
Creating /etc/gforge/httpd.secrets
Creating /etc/gforge/local.inc
Creating other includes
invoke-rc.d: unknown initscript, /etc/init.d/postgresql-8.4 not found.
dpkg: error processing gforge-db-postgresql (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
gforge-db-postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I try to remove it with:
sudo apt-get purge gforge-common
I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gforge-common* gforge-db-postgresql*
0 upgraded, 0 newly installed, 2 to remove and 9 not upgraded.
1 not fully installed or removed.
After this operation, 5,853kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 717305 files and directories currently installed.)
Removing gforge-db-postgresql ...
Replacing config file /etc/postgresql/8.4/main/pg_hba.conf with new version
invoke-rc.d: unknown initscript, /etc/init.d/postgresql-8.4 not found.
dpkg: error processing gforge-db-postgresql (--purge):
subprocess installed pre-removal script returned error exit status 100
Removing gforge-common ...
Purging configuration files for gforge-common ...
Processing triggers for man-db ...
Errors were encountered while processing:
gforge-db-postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)
And it complains until I do a:
sudo apt-get install -f
At which point gforge is re-installed.
I'm out of ideas, does anyone else have any other ideas with what might be wrong, and more importantly, how I can fix it? Thank you.