How do I fix packages have unmet dependencies?

How do I fix packages have unmet dependencies?

Type in sudo aptitude install PACKAGENAME, where PACKAGENAME is the package you’re installing, and press Enter to execute it. This will try to install the package via aptitude instead of apt-get, which should potentially fix the unmet dependencies issue.

How do you fix dependency errors?

When these dependency errors occur, we have multiple options we can try to address the issue.

  1. Enable all repositories.
  2. Update the software.
  3. Upgrade the software.
  4. Clean the package dependencies.
  5. Clean cached packages.
  6. Remove “on-hold” or “held” packages.
  7. Use the -f flag with the install subcommand.
  8. Use the build-dep command.

What is a dependency error?

The dependency issue arises when several packages have dependencies on the same shared packages or libraries, but they depend on different and incompatible versions of the shared packages. This, in turn, may break other dependencies and push the problem to another set of packages.

How do I fix unmet dependencies in Ubuntu?

Press Alt and F2 simultaneously and type in software-properties-gtk and press enter. Now in the Ubuntu Software tab, enable all the repositories (main, restricted, universe and multiverse) are enabled. and then Click on Select Best Server. Once it has finished, try to re-install the package again.

Why do I keep getting unmet dependencies error?

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 :

How to correct ” unmet dependencies ” in apt-get install?

Done You might want to run ‘apt-get -f install’ to correct these. The following packages have unmet dependencies: gnupg2 : Depends: gnupg-agent (= 2.1.11-6ubuntu2) E: Unmet dependencies. Try using -f. robert@X17:~$ sudo apt-get install gnupg-agent Reading package lists… Done Building dependency tree Reading state information…

How to install a package with missing dependencies?

You can install the package using. To Install the package. Once the package determines that you have some missing dependencies, run the following command to fix broken or missing dependencies. Above command will only download the missing dependencies if you have already installed the package.

How to fix unmet dependencies on Ubuntu easy cloud?

Open a Terminal by pressing Ctrl, Alt and T simultaneously on your keyboard. Type in sudo apt-get install -f and press Enter to execute it. Once it’s done, type in sudo dpkg –configure -a, press Enter to run it, and run the command from step 2 once more. Aptitude is an alternative of apt-get which you can use as a higher-level package manager.