How to delete a package manually, when pkg_delete fails to do so:
- Does pkg_info -L <package> work? If not, you will have to look through the +CONTENTS file line by line for the names of individual files to delete
- Delete the individual files.
- Review the +CONTENTS file for manual deletions/changes you will have to make. You must manually delete files or make edits in /etc and /var.
- Delete the /var/db/pkg/<package> structure.
For bash, you will need to edit /etc/shells, at the very least.
---
Will this solve the problem? Maybe. You may do more damage, if you make an error, and you will not have discovered and eliminated the root cause ... so this same problem could happen again. (And may have already happened on another of your systems, based on your other packing list error thread.)