I have a Routerboard 911G-2HPnD that is used as a wifi Access Point on my network.
The board’s package database has clearly become corrupted. I have old duplicate installed packages that refuse to go away. I’ve marked them with yellow and red lines:

I have no idea how it got to this state. I have tried disabling/uninstalling, the multicast and advanced-tools packages, both individually and together. Nothing works.
Any know how I can recover from this?