LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-19-2009, 06:24 PM   #1
jchambers
Member
 
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Force remove apache2-mpm-prefork


Hello.

I for some reason I can not remove apache2-mpm-prefork & apache2.2-common.


Code:
ri  apache2-mpm-prefork               2.2.3-4+etch6                        Traditional model for Apache HTTPD 2.1
ri  apache2.2-common                  2.2.3-4+etch6                        Next generation, scalable, extendable web se
Code:
apt-get remove apache2-mpm-prefork apache2.2-common
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  apache2-mpm-prefork apache2.2-common
0 upgraded, 0 newly installed, 2 to remove and 20 not upgraded.
Need to get 0B of archives.
After unpacking 4465kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 32796 files and directories currently installed.)
Removing apache2-mpm-prefork ...
Stopping web server (apache2)...grep: /etc/apache2/*: No such file or directory
 failed!
invoke-rc.d: initscript apache2, action "stop" failed.
dpkg: error processing apache2-mpm-prefork (--remove):
 subprocess pre-removal script returned error exit status 1
dpkg: apache2.2-common: dependency problems, but removing anyway as you request:
 apache2-mpm-prefork depends on apache2.2-common (= 2.2.3-4+etch6).
Removing apache2.2-common ...
Stopping web server (apache2)...grep: /etc/apache2/*: No such file or directory
 failed!
invoke-rc.d: initscript apache2, action "stop" failed.
dpkg: error processing apache2.2-common (--remove):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 apache2-mpm-prefork
 apache2.2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have tried
# apt-get -f install
It installs apache2.2-utils

Any ideas on how to reomve this pest...

Jon
 
Old 04-20-2009, 11:07 AM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 306

Rep: Reputation: 38
dpkg -r --force-all {package-names}

Give that a whirl.
 
Old 04-20-2009, 11:33 AM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Interesting the packages are currently marked for re-installation.. 'ri' -

it looks like the uninstall is failing because it can't run the stop scripts.. did you manually remove any files from apache ?

I would attempt to purge the packages and all their config.

apt-get
apt-get --purge remove apache2-mpm-prefork apache2.2-common

dpkg
dpkg -P apache2-mpm-prefork apache2.2-common

aptitude
aptitude purge ~apache2

Last edited by farslayer; 04-20-2009 at 03:19 PM.
 
Old 04-20-2009, 01:56 PM   #4
jchambers
Member
 
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127

Original Poster
Rep: Reputation: 15
Thank you for your inputs. Your comments gave me an idea to try and reinstall which seemed to work. I was not able to remove or purge without the reinstall.

I had uninstalled apache2 then deleted the /etc/apache2 folder manually which was a mistake. (lesson learned)


Code:
# aptitude reinstall apache2 apache-common  apache-dev apache2.2-common

Thanks again,
Jon
 
Old 04-20-2009, 03:19 PM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Yes to get rid of all the config files when uninstalling a package, you should use the purge option..

Learn something new every day ehh ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure apache prefork MPM LinuxCommandos Linux - Server 1 11-07-2008 11:09 AM
what should i set in worker MPM and prefork MPM? modpriest Linux - Newbie 5 02-21-2008 07:25 PM
Replacing apache2-mpm-prefork iNeo Debian 1 02-06-2006 03:17 PM
Apache2 & prefork MPM, PHP4 XTJ7 Linux - Software 6 04-29-2004 03:43 PM
apache2 prefork + php4 + mysql rymonree Linux - Software 1 09-06-2003 03:03 PM


All times are GMT -5. The time now is 04:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration