How do I fix apt unmet dependencies?

How do I fix apt unmet dependencies?

Solutions:

  1. If the error shows something like this:
  2. One possible cause of unmet dependencies could be corrupted package database, and/or some packages weren’t installed properly.
  3. One of the most basic fixes to resolve dependencies problems is to run: sudo apt-get -f install.

How do you fix packages with unmet dependencies?

Instead of using sudo apt-get install PACKAGENAME, where PACKAGENAME is the package you’re trying to install with the apt system, use sudo apt-get install -f. The -f parameter will attempt to correct a system which has broken dependencies, after which you’ll be able to install the package in question.

Why is apt-get install stuck in unmet dependencies?

The following packages have unmet dependencies: monodevelop : Depends: msbuild but it is not going to be installed E: Unmet dependencies. Try ‘apt –fix-broken install’ with no packages (or specify a solution). I’ve tried the suggested apt –fix-broken install, and it looks like it is trying to reinstall msbuild, but it still fails.

What to do if apt-get install is not installed?

Done You might want to run ‘apt –fix-broken install’ to correct these. The following packages have unmet dependencies: monodevelop : Depends: msbuild but it is not going to be installed E: Unmet dependencies. Try ‘apt –fix-broken install’ with no packages (or specify a solution).

Why do I get unmet dependencies error in Ubuntu?

2 – Package database cleanup. Unmet dependencies error can also be caused by a corrupted package database or packages that were not installed properly. By cleaning the package database this issue can be fixed. This can be achieved with two commands : sudo apt-get clean.

What’s the best way to fix dependencies in Apt?

One of the most basic fixes to resolve dependencies problems is to run: sudo apt-get -f install The -f here stands for “fix broken”. Apt will attempt to correct broken dependencies.