The following packages have unmet dependencies!
Solution 1:
You can install the package using.
make sure the repo sources are up to date
sudo apt-get update
To Install the package.
sudo apt-get install packagename
Once the package determines that you have some missing dependencies, run the following command to fix broken or missing dependencies.
sudo apt-get install -f
Above command will only download the missing dependencies if you have already installed the package.
Solution 2:
I know I'm a bit late, but none of the above solutions worked for me. What really solved my problem was to use aptitude
instead of apt-get. aptitude
will suggest resolutions to the problem.
Simply run these:
sudo apt-get install aptitude
sudo aptitude install <package-name>
aptitude
will suggest dependencies resolution for you e.g:
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libyaml-dev [Not Installed]
Accept this solution? [Y/n/q/? (n)
The following actions will resolve these dependencies:
Downgrade the following packages:
1) libyaml-0-2 [0.1.4-3ubuntu3.1 (now) -> 0.1.4-3ubuntu3 (trusty)]
Accept this solution? [Y/n/q/?] (Y)
as discussed in this post.