StefanScherer / dockerfiles-windows

Various Dockerfiles for Windows Containers
MIT License
1.11k stars 396 forks source link

donet - 20H2 - Error: The specified package is not applicable to this image. #463

Closed Strice91 closed 2 years ago

Strice91 commented 2 years ago

Dear Stefan,

thank you very much for building these inspiring images and Dockerfiles. They are a great knowledge base for my own experiments. I have been looking at your dotnet Dockerfile and tried to upgrade it to 20H2-amd64.

Currently, I could not figure out how to obtain the .NET download and update URLs like this one: https://download.visualstudio.microsoft.com/download/pr/7afca223-55d2...

Also to newest versions from the official dotnet-framework-repo does not work, since they are designed for windows-server-core ore similar.

The installation always ends with the Error message:

Expanding Files ....

Expanding Files Complete ...
4 files total.

Error: 0x800f081e

The specified package is not applicable to this image.

Could you tell me a method how to find the correct links for the version 20H2 as you did it for the 1809 version? Googling did not help me much and the https://download.visualstudio.microsoft.com does not have a index or anything.

Thank you very much.

Strice91 commented 2 years ago

I think, I figured it out. The download was not the problem. It was the update URL. You can find what update you need for which individual package using the Update Catalogue:

For 20H2 it is: https://catalog.s.download.windowsupdate.com/c/msdownload/update/software/secu/2021/12/windows10.0-kb5008876-x64-ndp48_5a565d73e211e26a8bb51bc19a7689ac01eb4cad.msu

Just make sure you update the patch path accordingly:

&& dism /Online /Quiet /Add-Package /PackagePath:C:\patch\windows10.0-kb5008876-x64-ndp48.cab \