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

Re: How to remove pakages and then install new...!



On Tue, Aug 24, 2004 at 08:15:28PM +0530, Nayyar Ahmed wrote:
> Hello All,
> 
>           I am receiving error when i un-install the apache2 pakage ,
> as i have given the following command i.e
> 
> 
> 
> debian:/home/neenix# apt-get remove apache2
> 
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Package apache2 is not installed, so not removed
> 0 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B of archives.
> After unpacking 0B of additional disk space will be used.
> Setting up apache (1.3.31-3) ...
> /var/lib/dpkg/info/apache.postinst: line 12:
> /usr/share/apache/postinst.common: No such file or directory
> dpkg: error processing apache (--configure):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  apache
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Well, the problem is fairly obvious - you are trying to remove
apache2, which you don't have installed, so it has nothing to remove.

You do, however, have apache installed, and it is not configured, so
it is giving you an error everytime you run an install or upgrade.
The problem here is that there is no /usr/share/apache/postinst.common
on your system (as to why I leave up to you).  If you don't need
apache (1.3) then remove apache.

> 
> 
> also when i want to install its fresh copy as the old wont work i get
> followin errors...i.e
> 
> debian:/home/neenix# apt-get install apache2
> 
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Package apache2 is a virtual package provided by:
>   apache2-mpm-worker 2.0.49-1
>   apache2-mpm-threadpool 2.0.49-1
>   apache2-mpm-prefork 2.0.49-1
>   apache2-mpm-perchild 2.0.49-1
> You should explicitly select one to install.
> E: Package apache2 has no installation candidate
> 
> i am halted with this problem plz solve it.

apache2 can be compiled to run in several ways, so debian provides
packages for each.

Just choose one (and you might want to at least "apt-cache show
<packagename" on them all to see what the differences are.

-- 
  _   _   _   _   _   _   _   _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ 
( t | i | m | @ | i | t | . | k | p | t | . | c | c )
 \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ 
GPG key fingerprint = 1DEE CD9B 4808 F608 FBBF  DC21 2807 D7D3 09CA 85BF



Reply to: