When you make a change to the version restrictions in the metadata.rb file and execute berks install in your Chef cookbook directory, you may get the error message:
Unable to satisfy constraints on package … due to solution constraint (…). Solution constraints that may result in a constraint on …: [(…)], [(…) -> (…)]
Demand that cannot be met: (…)
Artifacts for which there are conflicting dependencies: … = … -> [(…), (… ~> …)]Unable to find a solution for demands:…
Execute
berks update
to
- find the latest allowed versions of all referenced cookbooks,
- update the Berksfile.lock file and
- download the missing cookbooks to the cookbook cache folder at ~/.berkshelf/cookbooks
- This command executes berks install too behind the scenes.