dependency problems - leaving unconfigured Errors were encountered while processing:

C++
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt install libavahi-glib1 --reinstall

Source

Also in C++: