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

.NET 6.0.1 / .NET 6.0.2 Windows Update fails with error 0x80070643 #7044

Closed
kalaskarsanket opened this issue Dec 15, 2021 · 78 comments
Closed

Comments

@kalaskarsanket
Copy link
Contributor

kalaskarsanket commented Dec 15, 2021

Problem encountered when installing - Windows Update 2021-12 .NET 6.0.1 Security Update for x64 Client (KB5009191)

Operating System: Windows

Description: There have been limited reports of a failure to install the update via Microsoft Update on Windows 11. The update fails with error code 0x80070643. A workaround is to install the package that is failing manually by downloading it from the .NET 6.0.101 x64 SDK download site, then scanning again.

The other work around is to update Visual Studio installer to 17.0.4.

@damienmci
Copy link

I've received the same error. The work-around above has addressed the issue.

@gingters
Copy link

I also had that issue. The work-around helped for me, too.

@StefanoZamboninD22
Copy link

Same problem, same solution for me.

@realsircodesalot
Copy link

On Windows 10, same issue. I wish there was a better way to deal with this. I've had to jump through some hoops to resolve similar issues with .Net Core 3.1.

@pvanlaar
Copy link

I have had the same issue (Windows 11), but solved it with the Visual Studio Installer. Updating there installed the SDK version 6.0.101.

@KD0AZT
Copy link

KD0AZT commented Dec 17, 2021

Same issue. Was also able to solve it through the Visual Studio Installer.

@SMHodges
Copy link

Had the same problem, had to use the direct installation workaround.

@MichaelKoster70
Copy link

Had the same issue. Updating to VS 17.0.4 fixed the problem

@TheCakeMonster
Copy link

I've got the same problem on Windows 10; this isn't limited to Windows 11

@chrisaut
Copy link

Also getting this on fully patched machine, rebooting, retrying nothing helped, googling landed me here, Win11 22000.376

@fraluderin
Copy link

Same issue on Windows 11 22000.376. Updating to VS 17.0.4 solved for me.

@SpirTBBX
Copy link

I had the same issue with Windows 11. Updating through Visual Studio Installer fixed it.

@seantleonard
Copy link

Same issue. Error 0x80070643 when attempting to install 2021-12 .NET 6.0.1 Security Update for x64 Client (KB5009191). on Windows 11 22000.376.

I am on Visual Studio 2022 Preview so updating there, as the last workaround mentioned, did not work as I was still on .NET version 6.0.100.

After manually installing using the 6.0.101 from the first workaround, the issue was solved.

@Mrgaton
Copy link

Mrgaton commented Dec 17, 2021

i need help 😢

@MikeCondra
Copy link

MikeCondra commented Dec 18, 2021

Kalaskarsanket. thank you. It worked for me. Microsoft should find a way to push this out.

@Kagan-Ditlevsen
Copy link

Download, install, search for updates. Worked perfekt. I have not updates to the Visual Studio Installer, so apparently the is not the solution

@AraHaan
Copy link
Member

AraHaan commented Dec 19, 2021

Oddly enough I cant seem to find an update to 17.1 Preview 1.1 that updates the Sdk to 6.0.101 so I had to manually install it.

I wonder when the next VS17.1 Preview update will be. It just seems like they forgot about it for at least a month. I remember updating it in November last time so I feel it’s due for a new preview update.

@hockeyguy2
Copy link

Another data point: saw the issue on Windows 11 22000.376, and updating to VS 17.0.4 resolved it.

Thanks for the simple workaround. Now if we can just get Microsoft to wake up and fix this issue ...

@AraHaan
Copy link
Member

AraHaan commented Dec 19, 2021

Yes, also please update those using 17.1 Preview soon as well please with the updated .NET SDK releases for the month like 16.9 has.

@rbhanda
Copy link
Contributor

rbhanda commented Dec 21, 2021

Closing this in favor of #7062

@rbhanda rbhanda closed this as completed Dec 21, 2021
@rbhanda rbhanda unpinned this issue Dec 21, 2021
@Mist3rShey2n
Copy link

Problem encountered when installing - Windows Update 2021-12 .NET 6.0.1 Security Update for x64 Client (KB5009191)

Operating System: Windows

Description: There have been limited reports of a failure to install the update via Microsoft Update on Windows 11. The update fails with error code 0x80070643. A workaround is to install the package that is failing manually by downloading it from the .NET 6.0.101 x64 SDK download site, then scanning again.

The other work around is to update Visual Studio installer to 17.0.4.

Same problem same solution.

@michaelkhalsa
Copy link

Manually installing the update solved it.
Updating VS to 17.04 did not, and the VS installer failed to uninstall a half dozen dll's in the process.
I suspect their was a race condition with both system and VS updating at same time?

@ksediqi
Copy link

ksediqi commented Dec 25, 2021

Thanks! Manually installing .NET.... fixed the error.

@Seefer
Copy link

Seefer commented Dec 26, 2021

I found this Known Issue page detailing the problem related to this.

#7062

@cicorias
Copy link
Member

@joeloff installing the 6.0.102 SDK worked in terms of getting Windows update to no longer offer it

image

@Rand-Random
Copy link

Can also verify installing 6.0.102 stops windows update from offering 6.0.2.

@DelWoodcock
Copy link

Updated VS2022 Preview to 17.2 preview 1 and I get the following error, retried a couple of times.
image

@joeloff
Copy link
Member

joeloff commented Feb 23, 2022

Do you have any of the 6.0.100 SDKs installed (6.0.100 or 6.0.101)? If so, you can try manually installing the 6.0.102 SDK

@DelWoodcock
Copy link

Do you have any of the 6.0.100 SDKs installed (6.0.100 or 6.0.101)? If so, you can try manually installing the 6.0.102 SDK

Manually downloading and installing it fixed the issue, thanks.

@ptr727
Copy link

ptr727 commented Feb 25, 2022

metoo, happened with 6.0.100, went away after manually installing sdk, error is back after installing vs 17.2.0 preview 1.

PS C:\Users\piete> dotnet --list-sdks
3.1.416 [C:\Program Files\dotnet\sdk]
5.0.211 [C:\Program Files\dotnet\sdk]
6.0.101 [C:\Program Files\dotnet\sdk]
6.0.200 [C:\Program Files\dotnet\sdk]

@Rand-Random
Copy link

You need to install 6.0.102 sdk

@ptr727
Copy link

ptr727 commented Feb 25, 2022

You need to install 6.0.102 sdk

I just uninstall 6.0.101, no need to keep old SDK versions around.

@cda-1
Copy link

cda-1 commented Feb 26, 2022

Can also verify installing 6.0.102 stops windows update from offering 6.0.2.

Same, and I didn't even need to reboot.

@seantleonard
Copy link

6.0.3 installs from Windows update smoothly :) Thanks for getting this working out of the box!

@joeloff
Copy link
Member

joeloff commented Mar 8, 2022

@seantleonard You're welcome. Glad to hear it's working for you.

@AraHaan
Copy link
Member

AraHaan commented Mar 9, 2022

image

@joeloff
Copy link
Member

joeloff commented Mar 9, 2022

@AraHaan is it still offering the 6.0.2 update? You should be getting the 6.0.3 offering at this point.

@AraHaan
Copy link
Member

AraHaan commented Mar 9, 2022

It is still yes. Even after manually installing 6.0.2.

@joeloff
Copy link
Member

joeloff commented Mar 9, 2022

When you say 6.0.2, did you only install the runtime or did you install the 6.0.102 SDK. Updates are branded under the runtime version, but could include one or more SDK that's associated with the release.

@AraHaan
Copy link
Member

AraHaan commented Mar 9, 2022

When you say 6.0.2, did you only install the runtime or did you install the 6.0.102 SDK. Updates are branded under the runtime version, but could include one or more SDK that's associated with the release.

The SDK installers for x86 and x64.

@PhantomGamers
Copy link

I was getting the error with 6.0.2 so I successfully installed the update manually, however I am getting the error again now with 6.0.3
image

@milesbuckton
Copy link

milesbuckton commented Mar 10, 2022

⚠️ I am also experiencing the same issue for .NET 6.0.3 on Windows 11:

image

💡 I'm not sure if the below scheds more light on the situation:

image

ℹ️ I have Visual Studio 2022 17.1.1, and Visual Studio 2017 15.9.45 installed.

@Rand-Random
Copy link

Rand-Random commented Mar 10, 2022

I may have a different issue, hope it is okay, to post it here.
I did get the latest Windows Update offered, and it got installed correctly according to Windows Update.

image
Hope the german User Intrace is understandable.

But out of curiosity I looked into "dotnet --info" and the version 6.0.3 is no where to be found
image

@jespersh
Copy link

@Rand-Random
Could you check the x86 dotnet? I see it there, but not in x64 which it claims it installed:

C:\Users\jsh>dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.200
 Commit:    4c30de7899

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19043
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.200\

Host (useful for support):
  Version: 6.0.2
  Commit:  839cdfb0ec

.NET SDKs installed:
  3.1.417 [C:\Program Files\dotnet\sdk]
  5.0.104 [C:\Program Files\dotnet\sdk]
  5.0.201 [C:\Program Files\dotnet\sdk]
  5.0.203 [C:\Program Files\dotnet\sdk]
  5.0.212 [C:\Program Files\dotnet\sdk]
  5.0.303 [C:\Program Files\dotnet\sdk]
  5.0.403 [C:\Program Files\dotnet\sdk]
  5.0.406 [C:\Program Files\dotnet\sdk]
  6.0.200 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
>>>  Microsoft.AspNetCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
>>>  Microsoft.AspNetCore.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
>>>  Microsoft.NETCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
>>>  Microsoft.NETCore.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
>>>  Microsoft.WindowsDesktop.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
>>>  Microsoft.WindowsDesktop.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

C:\Users\jsh>"c:\Program Files (x86)\dotnet\dotnet.exe" --info

Host (useful for support):
  Version: 6.0.3
  Commit:  c24d9a9c91

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.13 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.21 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.22 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
>>>  Microsoft.AspNetCore.App 3.1.23 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.4 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.12 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.14 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
>>>  Microsoft.AspNetCore.App 5.0.15 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.2 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
>>>  Microsoft.AspNetCore.App 6.0.3 [c:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.13 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.21 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.22 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
>>>  Microsoft.NETCore.App 3.1.23 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.4 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.12 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.14 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
>>>  Microsoft.NETCore.App 5.0.15 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.2 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
>>>  Microsoft.NETCore.App 6.0.3 [c:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.13 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.21 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.22 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
>>>  Microsoft.WindowsDesktop.App 3.1.23 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.4 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.12 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.14 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
>>>  Microsoft.WindowsDesktop.App 5.0.15 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.2 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
>>>  Microsoft.WindowsDesktop.App 6.0.3 [c:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Seems like it only installed the x86 version for 6.0.3?
I marked the lines from this update cycle with >>>

image

@Rand-Random
Copy link

@jespersh
Yes, I do find 6.0.3 as x86

image

@jespersh
Copy link

@PhantomGamers and @milesbuckton could you two also check if 6.0.3 is actually already installed and the update breaks because of that?
I observed previously that net6.0.x installed by Visual Studio, then by a windows update would remove the sdk installed by VS. I don't think however there's a VS shipping 6.0.3 yet though?

@PhantomGamers
Copy link

PhantomGamers commented Mar 10, 2022

@jespersh ah according to dotnet --info the 6.0.3 runtime is installed but I only have the 6.0.201 SDK installed
image

@AraHaan
Copy link
Member

AraHaan commented Mar 10, 2022

The 201 SDK is 6.0.3 I think.

@Rand-Random
Copy link

Rand-Random commented Mar 10, 2022

@PhantomGamers

That is to be expected as you can see here:
https://dotnet.microsoft.com/en-us/download/dotnet/6.0

Runtime Version and SDK Version are different.
They are even different between Visual Studio Versions.
Visual Studio 17.0.x uses SDK 6.0.103 but Visual Studio 17,1.x uses SDK 6.0.201.

But atleast your windows update did something as x64.
My x64 dotnet -info shows nothing

  • no runtime 6.0.3
  • no sdk 6.0.103
  • no sdk 6.0.201

I expected the sdk 6.0.201 to be installed as I am using Visual Studio 17.2 preview 1.0 + the runtime 6.0.3 for x64.
The only thing I got was the runtime 6.0.3 for x86.

@milesbuckton
Copy link

Hi @jespersh, dotnet --info does show that it is installed:

image

@Rand-Random
Copy link

Rand-Random commented Mar 11, 2022

@milesbuckton
If I had to guess, you need to manually install the 6.0.200 sdk to get rid of your windows update message.
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.200-windows-x64-installer

Very basic explanation, of how I understand the problem
Windows Update seems to want everything, even older SDK version, but fails to deliver,

Edit:
and/or the 6.0.103 sdk
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.103-windows-x64-installer

@milesbuckton
Copy link

@Rand-Random, you're a genius - thank you! Your solution worked for me! 😄 I uninstalled 6.0.201, then installed 6.0.103, 6.0.200, and 6.0.201 again. Now Windows Update is satisfied. See below:

image

@AraHaan
Copy link
Member

AraHaan commented Mar 14, 2022

Sadly for me that is not an option as 6.0.2xx or so is part of Visual Studio and so uninstalling it might break the IDE.

Edit: wish the IDE would not try to install the 6.x but instead the 7.x sdk's when you have only the preview version installed, else stable 6.x when non-preview install of vs2022.

@milesbuckton
Copy link

Sadly for me that is not an option as 6.0.2xx or so is part of Visual Studio and so uninstalling it might break the IDE.

Edit: wish the IDE would not try to install the 6.x but instead the 7.x sdk's when you have only the preview version installed, else stable 6.x when non-preview install of vs2022.

Hi @AraHaan, I never uninstalled Microsoft .NET SDK 6.0.201 (x64) from Visual Studio, only the standard one Microsoft .NET SDK 6.0.201 (x64). It appears both can coexist. See below:

image

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