On Tue, Jun 28, 2005 at 05:06:38PM +1000, Michael Lake wrote:
> Hi all
> 
> How do I remove or tell Debina that I dont have a package installed?
> Last week I installed (sort of) libapache-mod-security
> There were probs at the configure stage as the package has install bugs so 
> I wish to get rif of it.
> 
> I tried to remove it but the post remove script failed so I probably don't 
> have the package installed:
> $ dpkg -L libapache-mod-security
> Package `libapache-mod-security' does not contain any files (!)
> $ 
> 
> But when I go to upgrade it thinks the package is still there.
> 
> ~$ sudo apt-get upgrade
> Reading Package Lists... Done
> Building Dependency Tree... Done
> You might want to run `apt-get -f install' to correct these.
> The following packages have unmet dependencies:
>  libapache-mod-security: Depends: mod-security-common (= 1.8.7-1) but it is 
>  not installed
> E: Unmet dependencies. Try using -f.
> 
> Here is where I try to remove it:
> 
> $ sudo apt-get --purge remove libapache-mod-security
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following packages will be REMOVED:
>  libapache-mod-security*
> 0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded.
> Need to get 0B of archives.
> After unpacking 123kB disk space will be freed.
> Do you want to continue? [Y/n] y
> (Reading database ... 91816 files and directories currently installed.)
> Removing libapache-mod-security ...
> /
> /
> dpkg: error processing libapache-mod-security (--purge):
> subprocess post-removal script returned error exit status 128
> Errors were encountered while processing:
> libapache-mod-security
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
> -- 
> Mike Lake

Look at /var/lib/dpkg/info/libapache-mod-security.prerm and .postrm
Do 'manually' scripts if needed.
rm /var/lib/dpkg/info/libapache-modsecurity.*rm
dpkg --force-remove-reinstreq --force-depends libapache-mod-security

-- 
Chiron
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to