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

Re: Apt Needs Counseling



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 <martyb@ix.netcom.com>
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: <martyb@ix.netcom.com>
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: <[🔎] BAY101-F26881C238CE7143941F366C8700@phx.gbl> <[🔎] 4356BA1B.2080409@ix.netcom.com>
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: <B3b0SC.A.RkF.xylWDB@murphy>
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:debian-user-request@lists.debian.org?subject=help>
List-Subscribe: <mailto:debian-user-request@lists.debian.org?subject=subscribe> List-Unsubscribe: <mailto:debian-user-request@lists.debian.org?subject=unsubscribe>
Precedence: list
Resent-Sender: debian-user-request@lists.debian.org
Resent-Date: Sat, 22 Oct 2005 10:37:21 -0500 (CDT)
Return-Path: bounce-debian-user=freddiewitherden=hotmail.com@lists.debian.org 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:
freddie@macserv:~$ 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 debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org





Reply to: