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

Re: Apt Needs Counseling

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:

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>

Reply to: