You just need to reinstall Software center
Press Ctrl+Alt+T simultaneously to enter terminal.
To uninstall Software Center:
sudo apt-get remove software-center
sudo apt-get autoremove software-center
To re-install Software Center:
sudo apt-get update
sudo apt-get install software-center -y
If this doesn't help then maybe the cache files are corrupted and that's getting in between opening of software center. To regenerate it open a terminal and enter the following:
sudo rm -r /var/cache/software-center/xapian
sudo mv /var/lib/dpkg/info/format /var/lib/dpkg/info/format.bak
sudo dpkg --clear-avail
sudo apt-get update
sudo apt-get install --reinstall software-center
To solve the issue with Lazarus this answer might help you