Это то, что сработало для меня на Ubuntu 16.04.
sudo apt autoremove --purge sudo apt autoremove sudo apt-get -f install sudo apt-get upgrade