[SOLVED] How do I recover from corrupted package db on my RB911G?

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:
Packages.png
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?

Try netinstall.

Replying a bit late to this.

The netinstall fixed the problem.

It mostly does. Good to read you have succeeded. Enjoy!