[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache2 won't remove.



On Tue, Feb 27, 2007 at 10:21:30 -0800, Andrew Sackville-West wrote:
> On Tue, Feb 27, 2007 at 07:12:09PM +0100, Florian Kulzer wrote:
> > On Mon, Feb 26, 2007 at 21:34:32 +0000, pChan -- wrote:
> > > 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...
> > > sd-6340:/etc/init.d# apt-get remove apache2-mpm-worker
> > > Reading Package Lists... Done
> > > Building Dependency Tree... Done
> > > The following packages will be REMOVED:
> > >  apache2 apache2-mpm-worker
> [...]
> > > Removing 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)
> > > 
> > > 
> > > I have absolutely no idea what to do, as it depends on apache2.initd to
> > > remove.
> 
> [...]
> > 
> > I think your best option is to extract the missing file from the .deb
> > package and to put it into /etc/init.d. First you have to see if the
> > .deb file is still in your package cache. Its path will be something
> > like
> > 
> > /var/cache/apt/archives/apache2-common_<version-arch>.deb
> > 
> 
> can't OP just aptitude reinstall apache2??

I was worried that the broken apache2-mpm-worker package would block all
further installation commands with apt-get trying to fix (remove) it
first and running into the same error again. In fact I had assumed that
the OP had tried reinstalling apache already. It is a good thing that
you pointed this out; maybe the problem can indeed be solved by simply
reinstalling.

-- 
Regards,
          Florian



Reply to: