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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Syntax error in bitops.h:244
    ... as a result got rid of hotplug by accident. ... So I removed this package ... after reinstalling hotplug, the eagle-usb thing hadn't registered with ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Apache2 and php4 install on etch RC1
    ... I tried to install apache2 on my new etch system. ... installation I tried to install php4 package. ... Building dependency tree... ...
    (Debian-User)
  • Re: Apache2 wont remove.
    ... Reading Package Lists... ... Removing apache2-mpm-worker ... ... .deb file is still in your package cache. ...
    (Debian-User)
  • Re: package for CD does not show up in my ppt 2003
    ... Does it have package for CD ... Heck I remember as farback as win 98 having Pack and Go ... Reinstalling Office may help, though. ... If it's already set that way, cancel out of the installer. ...
    (microsoft.public.powerpoint)
  • Re: apt pinning confusion
    ... Pin: release o=Debian, a=experimental ... subject of "unsubscribe". ... Trouble? ... downgrade of the package ...
    (Debian-User)