RE: Apache2 won't remove.
> I am trying to remove apache2. But before that, I did something stupid. I
"rm apache2" in /etc/init.d
>
> So now, if I try to remove apache2-mpm-worker...
>
> invoke-rc.d: unknown initscript, /etc/init.d/apache2 not found.
> dpkg: error processing apache2-mpm-worker (--remove):
> subprocess pre-removal script returned error exit status 100
> Errors were encountered while processing:
> apache2-mpm-worker
> E: Sub-process /usr/bin/dpkg returned an error code (1)
You could try "touch /etc/init.d/apache2" to create an empty file.
If this doesn't work, then
# apt-get install --reinstall apache2-mpm-worker
And try removing again.
-- Kevin
Reply to: