How to fix the following packages have unmet dependencies on Ubuntu Desktop. Learn what does unmet dependencies mean and how to apt install dependencies automatically. For unmet dependencies try ‘apt-get f install’ with no packages on Ubuntu Desktop.
Method to fix “sudo apt-get install ubuntu-desktop broken packages”:
Unmet Dependency Errors
Unmet Dependency means that the package you are trying to install is looking for “dependencies” that it cannot find in the current version. The simple way to fix this error is to update the package database, clean out the package cache, and download-and-reinstall the newer version.
sudo apt-get autoclean
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get -f install
If the output is: 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. That means the solution failed and you will have to run the following commands to fix the error.
Method 1
sudo apt-get update
sudo apt-get -u dist-upgrade
sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
sudo apt-get remove --dry-run package-name
Method 2
sudo apt-get update
sudo apt-get -u dist-upgrade
sudo apt-get clean package-name
sudo apt-get install --reinstall package-name