Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When installing or upgrading packages with dependencies, the error 'Unable to resolve dependency' is encountered #3496

Open
pauby opened this issue Aug 6, 2024 · 0 comments

Comments

@pauby
Copy link
Member

pauby commented Aug 6, 2024

(NOTE: This is a work in progress that we will continue to update).

This issue has been created to provide additional information on how to resolve dependency issues and to collect these dependency issues together.

When installing or upgrading a package, you may see the error:

[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'PACKAGE 3.11.4 constraint: PACKAGE (= 3.11.4)'
Unable to resolve dependency 'PACKAGE'. Source(s) used: 'SOURCE'.

(Note PACKAGE and SOURCE can be any package or source and are being used as examples).

There are a few common scenarios we have seen that can lead to this (in no particular order):

  1. You have a meta-package (emacs for example) that depends on another package (emacs.install). The other package (emacs.install) has been uninstalled by some means. This would break the dependency for the meta-package (emacs).

(NOTE: The above list is a work in progress that we will continue to add to).

There are a couple of options available:

  1. Read the dependency documentation and work through the examples.
  2. Watch the YouTube video where we take you through some common scenarios and solutions.
  3. Reach out on our Community Hub.

Please do not raise an issue on this until you have gone through the options above and the Chocolatey Team requests you to. If you do raise an issue before doing the above, it is highly likely it will be closed.

Related Issues

@pauby pauby pinned this issue Aug 6, 2024
@pauby pauby changed the title When installing or upgrading packages with dependencies, the error 'Unable to resolve dependency' is given When installing or upgrading packages with dependencies, the error 'Unable to resolve dependency' is encountered Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant