[PLUG] Package can't be deleted

Mike C. mconnors1 at gmail.com
Sun Oct 18 05:49:09 UTC 2020


>
> dpkg: error processing package oscar (--remove):
>  package is in a very bad inconsistent state; you should
>  reinstall it before attempting a removal
> dpkg: too many errors, stopping
> Errors were encountered while processing:
>  oscar
> Processing was halted because there were too many errors.
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>

> 2 not fully installed or removed.
>

Looking through the command output it doesn't look like you ever ran the
"sudo apt-ge autoremove" command?

The general first steps advice when dealing w. a bad package state is to
run the auto-remove command and then attempt to fix any missing and/or
broken pkgs w. the  "sudo apt-get install -f " command

If you still run into problems, then you can try the below command.
Reference - https://linuxhint.com/apt_get_fix_missing_broken_packages/

sudo dpkg --remove -force --force-remove-reinstreq Package_Name



More information about the PLUG mailing list