I was trying to install mono using following commands,
sudo apt-get install mono-*
unfortunately, I closed the terminal while it instal
After searching a lot I got a satisfactory result:
I found some places saying to run commands:
sudo apt-get install -f sudo dpkg --configure -a
But none of those above worked.
The solution that worked to me:
sudo dpkg --configure --pending
I hope this helps