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

Failure to install dotnet-6.0-windowshosting due to unresolved dependency 'KB2919442' #69

Open
umeshmuipath opened this issue Jun 18, 2023 · 1 comment

Comments

@umeshmuipath
Copy link

umeshmuipath commented Jun 18, 2023

The installation of dotnet-6.0-windowshosting using the Chocolatey package manager with the version 6.0.14 and higher is failing. The error message indicates that the installation process is unable to resolve the dependency 'KB2919442' and cannot find a compatible version of it.

Steps to Reproduce:
Run the command choco install dotnet-6.0-windowshosting --version=6.0.14 -y

Failures:-
-dotnet-6.0-windowshosting - Unable to resolve dependency 'KB2919442': Unable to find a version of 'KB2919442' that is compatible with 'KB2919355 1.0.20160915 constraint: KB2919442 (>= 1.0.20160915)'

Here are the sample installation logs https://gist.github.com/umeshmuipath/5ad92f4e225bf2135508da74e1559f1f

@jberezanski
Copy link
Collaborator

The package installs fine on a clean Win10 machine. There have been no changes in dotnet 6.0 package dependencies since their creation.

Looking at your log:

2023-06-18 17:01:06,186 40196 [DEBUG] - --- Start of List ---
2023-06-18 17:01:06,199 40196 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
2023-06-18 17:01:06,404 40196 [DEBUG] - KB2919355 1.0.20160915
...
2023-06-18 17:01:20,737 40196 [ERROR] -  - dotnet-6.0-windowshosting - Unable to resolve dependency 'kb2919355': Unable to find a version of 'kb2919355' that is compatible with 'KB2999226 1.0.20161023 constraint: kb2919355 (>= 1.0.20160915)', 'vcredist140 14.0.24215.1 constraint: kb2919355 (>= 1.0.20160915)'.

choco sees KB2919355 version 1.0.20160915 as already installed, but then it claims it was unable to resolve it as a dependency. This looks like an issue with choco.exe. Major changes to package dependency handling have been made in the recently released choco 2.0.0, so the first thing I would suggest would be to try this on an older choco (such as 1.4.0).

(My guess would be that some code inside choco treats package ids as case sensitive. But it's just that, a guess.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants