Thanks! After editing the pre-removal files (commenting out most of them) and touching the file like you said it all seems to work fine. Thank you very much for all of your help!

From: Marty <[EMAIL PROTECTED]>
To: debian-user@lists.debian.org
Subject: Re: Apt Needs Counseling
Date: Sat, 22 Oct 2005 11:37:19 -0400
MIME-Version: 1.0
Received: from murphy.debian.org ([146.82.138.6]) by mc11-f38.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Sat, 22 Oct 2005 08:37:42 -0700 Received: from localhost (localhost [127.0.0.1])by murphy.debian.org (Postfix) with QMQPid 98F812E67E; Sat, 22 Oct 2005 10:37:21 -0500 (CDT) Received: from pop-sarus.atl.sa.earthlink.net (pop-sarus.atl.sa.earthlink.net [207.69.195.72])by murphy.debian.org (Postfix) with ESMTP id 9497F2E671for <debian-user@lists.debian.org>; Sat, 22 Oct 2005 10:37:20 -0500 (CDT) Received: from h-69-3-205-82.sfldmidn.dynamic.covad.net ([69.3.205.82] helo=[10.1.21.2])by pop-sarus.atl.sa.earthlink.net with esmtp (Exim 3.36 #10)id 1ETLQu-0000ZY-00for debian-user@lists.debian.org; Sat, 22 Oct 2005 11:37:21 -0400
X-Message-Info: JGTYoYF78jH4zDSZ+ALLoFjHdCxwIsjtR7JupJUXkks=
Old-Return-Path: <[EMAIL PROTECTED]>
X-Original-To: debian-user@lists.debian.org
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2
X-Accept-Language: en
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
X-Rc-Virus: 2005-08-24_01
X-Rc-Spam: 2005-09-11_01
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on murphy.debian.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,LDOSUBSCRIBER autolearn=no version=3.0.3
Resent-Message-ID: <[EMAIL PROTECTED]>
Resent-From: debian-user@lists.debian.org
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/414328
X-Loop: debian-user@lists.debian.org
List-Id: <debian-user.lists.debian.org>
List-Post: <mailto:debian-user@lists.debian.org>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]> List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
Precedence: list
Resent-Sender: [EMAIL PROTECTED]
Resent-Date: Sat, 22 Oct 2005 10:37:21 -0500 (CDT)
Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 22 Oct 2005 15:37:42.0397 (UTC) FILETIME=[8A957AD0:01C5D71E]

Marty wrote:
Freddie Witherden wrote:
Here is the result of using that command:
[EMAIL PROTECTED]:~$ sudo dpkg --force-all -P webmin-core
(Reading database ... 75153 files and directories currently installed.)
Removing webmin-core ...
/etc/webmin/webmin.acl: No such file or directory
dpkg: error processing webmin-core (--purge):
subprocess pre-removal script returned error exit status 2
/etc/webmin/webmin.acl: No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
webmin-core

That just means that you somehow deleted or corrupted the post-installation script
and unless that runs dpkg doesn't "know" if the package is really purged.

Sorry, I just noticed that I was mistaken about the problem here.

It looks like the removal scripts are complaining about a missing file,
/etc/webmin/webmin.acl.  Try:

touch /etc/webmin/webmin.acl

Then try to purge it again.



Does anyone know a way of forcing apt/dpkg to forget that a package even exists?

If you don't care about whether it's really purged, you can just replace
the post-installation script with a do-nothing executable script, i.e. one
that just the runs runs "true" or the equivalent. Otherwise you could replace the script and rerun the purge command. Since I don't run webmin I don't have it handy, but you can just extract it from the .deb using dpkg -x <filename, directory>




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to