How to Completely remove mono?
sudo apt remove --purge --auto-remove mono-runtime
This will then completely remove mono from your system to correct the issue.
Ok simply run sudo rm -rf usr/lib/mono /usr/local/bin/mono /usr/local/etc/mono /usr/local/lib/mono
in terminal.