PDA

View Full Version : Metasploit package errors please help



Sly14Cat
2013-05-27, 14:29
So one day I was looking to make my system start up faster so I say postgresql and tried to remove it..... Bad idea. Turns out metasploit depends on it. So I canceled it once it said metasploit needs to be removed too. So now I get this weird error when I try to install or remove anything.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up metasploit (4.6.1-2013052201-1kali0) ...
insserv: Service postgresql has to be enabled to start service metasploit
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing metasploit (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
metasploit
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have no idea what to do from here. Any help?

root-boy
2013-05-27, 14:55
try the following commands:



apt-get remove metasploit && apt-get autoclean
apt-get install metasploit


and come back if you still have a problem.

Good luck.

Sly14Cat
2013-05-27, 21:14
Thanks a lot for replying but it's still there.

linccracker
2013-05-27, 22:29
Just a thought but spotted this in your error message
" insserv: Service postgresql has to be enabled to start service metasploit "
Have you started postgresql service
in terminal type "service postgresql start"
then try your install

root-boy
2013-05-28, 13:34
Just a thought but spotted this in your error message
" insserv: Service postgresql has to be enabled to start service metasploit "
Have you started postgresql service
in terminal type "service postgresql start"
then try your install

You're right.

Sly14Cat, you will have to start the postgresql service first.

Good luck.