I was trying to install mono using following commands,
sudo apt-get install mono-*
unfortunately, I closed the terminal while it instal
run the command sudo dpkg --configure -a
sudo dpkg --configure -a