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

Re: Getting Rid of a Failed Install



Hi MadMac,

I don't know if this is very dangerous or not, but I screwed up an install
of courier-imap only two days ago.  And not matter what I tried, I could not
remove it or reinstall it at all.

I tried: dpkg -r --force-all courier-imap

Which still returned errors.

The way round it, I found by experimentation, was to remove the entry from
the following file, as this holds the current status of all packages that
are installed.
/var/lib/dpkg/status

I do not know how dangerous this would be, but it worked for me and I was
able to purge courier-imap and reinstall it again.

Anyone else who can shine a light on how dangerous or not this can be, apart
from the fact you could remove the wrong parts of the status file by
mistake. ;)

Thanks,

Kevin

----- Original Message -----
From: "Doug MacFarlane" <madmac@covad.net>
To: <debian-user@lists.debian.org>
Sent: Wednesday, February 12, 2003 3:47 PM
Subject: Getting Rid of a Failed Install


>
> Team:
>
> I've got a botched install of apache2 that I can't uninstall since the
init.d
> start/stop script always returns an error.
>
> apt/dpkg keep the package's removal in the pending state, and whenever I
do anything
> else it retries the removal and fails.  How do I correct this?
>
> madmac
>
>
>
> --
> Doug MacFarlane
> madmac@covad.net
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>




Reply to: