Ubuntu fix broken package

C++
sudo apt-get update --fix-missing
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt upgradesudo dpkg --configure -a
Source

Also in C++: