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

Windows Update error 0x80070643 trying to install "2021-11 .NET Core 3.1.21 Update for x64 Client (KB5007885)" #7093

Closed
conioh opened this issue Jan 6, 2022 · 42 comments
Assignees
Labels
area-setup Issues related to installing .NET Core

Comments

@conioh
Copy link

conioh commented Jan 6, 2022

Description

  • Please share a clear and concise description of the problem.

image

  • What behavior are you seeing, and what behavior would you expect?
    Tried to install "update" to 3.1.21 even when I have runtime 3.1.22 installed (from the latest SDK download) or when I don't have .NET 3 at all.
    I expect that update to succeed if needed, and in case I have a newer version or don't have .NET 3 at all not to get an "update" at all.

Configuration

  • What OS and version, and for Linux, what distro?
    Windows 11 build 22000.376

  • What is the architecture (x64, x86, ARM, ARM64)?
    x64

  • Do you know whether it is specific to that configuration?
    No.

Regression?

Absolutely.

Other information

The error code is similar to the one mentioned in #7044 but:

  • The workaround of updating the Visual Studio installer is irrelevant (there were no updates, uninstalling VS 2019 didn't help, my VS 2022 doesn't include .NET 3 as an installed component, etc.)
  • Installing the latest SDK didn't help. Windows Update actually tries to "update" 3.1.22 to 3.1.21, whatever that means.

image

@Liwindo
Copy link

Liwindo commented Jan 6, 2022

This issue is also hitting me on Windows 10, tried the same workarounds but no solution. Please fix it asap.

@buyaa-n
Copy link
Member

buyaa-n commented Jan 7, 2022

Tagging @rbhanda for further triage, JFYI i have transferred the other similar issue into SDK repo, maybe it was supposed to stay in this repo

@zzhou98
Copy link

zzhou98 commented Jan 7, 2022

I also have this problem (.NET Core 3.1.21 for x64 KB5007885), I deleted any new version and then go this site

Install (dotnet-sdk-3.1.415-win-x64_8b088c0e40d1317aa1b1b2613a3226b58012e505.exe) to solve the problem

The idea is that you must install the version shown by the problem code, and delete the newer and lower versions

@nattlip
Copy link

nattlip commented Jan 7, 2022

i have same problem . i see on my update history . 2021-11 .NET Core 3.1.21 Update for x64 Client (KB5007885) is installed on 10-11, why does windows update install it again, i am in windows 11 insiders

@clyburnw
Copy link

clyburnw commented Jan 7, 2022

Same problem on same OS and VS (2022) configurations. I had the same issue last time, but it went away after a VS update, only to re-occur the next time Windows Update wanted to install these .Net updates.

@ESClemens
Copy link

Same problem on a Windows 7 machine. I didn't even know I had .NET Core installed!

@AcidVienna
Copy link

Same here (Win11x64)....

@skykharkov
Copy link

Same here Windows 10 Pro 21H1 build 19043.1415

@gnovos
Copy link

gnovos commented Jan 8, 2022

same here, win 11 x64

@Truandale
Copy link

Truandale commented Jan 8, 2022

Description

  • Please share a clear and concise description of the problem.

image

  • What behavior are you seeing, and what behavior would you expect?
    Tried to install "update" to 3.1.21 even when I have runtime 3.1.22 installed (from the latest SDK download) or when I don't have .NET 3 at all.
    I expect that update to succeed if needed, and in case I have a newer version or don't have .NET 3 at all not to get an "update" at all.

Configuration

  • What OS and version, and for Linux, what distro?
    Windows 11 build 22000.376
  • What is the architecture (x64, x86, ARM, ARM64)?
    x64
  • Do you know whether it is specific to that configuration?
    No.

Regression?

Absolutely.

Other information

The error code is similar to the one mentioned in #7044 but:

  • The workaround of updating the Visual Studio installer is irrelevant (there were no updates, uninstalling VS 2019 didn't help, my VS 2022 doesn't include .NET 3 as an installed component, etc.)
  • Installing the latest SDK didn't help. Windows Update actually tries to "update" 3.1.22 to 3.1.21, whatever that means.

image

I solved this problem. Uninstall manually all old versions of .NET Runtime 3.1 and install manually new version .NET Runtime 3.1 from https://dotnet.microsoft.com/en-us/download/dotnet/3.1

image

@pstimpel
Copy link

pstimpel commented Jan 8, 2022

I solved this problem. Uninstall manually all old versions of .NET Runtime 3.1 and install manually new version .NET Runtime 3.1 from https://dotnet.microsoft.com/en-us/download/dotnet/3.1

worked fine

@cooperdk
Copy link

cooperdk commented Jan 9, 2022

I also have this problem (.NET Core 3.1.21 for x64 KB5007885), I deleted any new version and then go this site

Install (dotnet-sdk-3.1.415-win-x64_8b088c0e40d1317aa1b1b2613a3226b58012e505.exe) to solve the problem

The idea is that you must install the version shown by the problem code, and delete the newer and lower versions

The link you're giving there is for the SDK, not for the core. That won't work.

That said, this will not resolve the issue either. Windows will still try to apply patch 3.1.21, even though you have a newer one installed, and it will still fail.

@ViRuSTriNiTy
Copy link

ViRuSTriNiTy commented Jan 9, 2022

I also have this problem (.NET Core 3.1.21 for x64 KB5007885), I deleted any new version and then go this site
Install (dotnet-sdk-3.1.415-win-x64_8b088c0e40d1317aa1b1b2613a3226b58012e505.exe) to solve the problem
The idea is that you must install the version shown by the problem code, and delete the newer and lower versions

The link you're giving there is for the SDK, not for the core. That won't work.

That said, this will not resolve the issue either. Windows will still try to apply patch 3.1.21, even though you have a newer one installed, and it will still fail.

That statement is most likely not correct as I could fix the install error by basically uninstalling existing products and reinstalling them.

The procedure is as follows:

  • Visit https://www.catalog.update.microsoft.com/
  • Enter the KB... number that fails on auto-update, here for example KB5007885
  • Click Download displayed next to the search result to open a window with all the installers associated with the KB number, one of these installers fails on auto-update and you need to find out which one, so ...
  • Download all installers linked in the upcoming window
  • Now try to run all these installers

When an installer fails, it will display the actual reason. On my side it was something along lines of Another version is already installed hence I uninstalled the associated version followed by a second try of running the installer ... and guess what, it installed the product. After running all the installer successfully, update the Windows Update dialog and hopefully, like in my case, the error is gone.

@GaryFurash
Copy link

Didnt' work. I manually downlaoded KB5007885 and KB5007884 and installed them manually and they were fine, but widnows update keeps trying to install them.

@pstimpel
Copy link

pstimpel commented Jan 9, 2022

Didnt' work. I manually downlaoded KB5007885 and KB5007884 and installed them manually and they were fine, but widnows update keeps trying to install them.

had to uninstall all other v3 .net stuff first, then reinstalled again after a reboot, and after another reboot windows update made its thing and turned green again.

@GaryFurash
Copy link

GaryFurash commented Jan 9, 2022

I'm getting the error for both 3 and 5

image

I'm not sure which of the DotNet runtimes (right, it's runtime, not SDK) I need to uninstall

image

@pstimpel
Copy link

pstimpel commented Jan 9, 2022

I kicked all I found.

@MatthewGP
Copy link

Something has occurred to cause Windows update to attempt to install 2021-11 .NET Core 3.1.21 Update for x64 Client (KB5007885) again on January 5, 2022 after it had already been successfully installed on November 8, 2021.

image

@bplasmeijer
Copy link

bplasmeijer commented Jan 9, 2022

same here:

windows 21h2 22000.376

image

@R4to0
Copy link

R4to0 commented Jan 9, 2022

Same, Win10 21H1 64-bit.

image

@clean-asus
Copy link

clean-asus commented Jan 10, 2022

I uninstalled all versions of Visual Studio.NET, and then uninstalled everything else with .NET in the name. Then I ran Windows Update, and no errors occurred.

@conioh
Copy link
Author

conioh commented Jan 10, 2022

I also have this problem (.NET Core 3.1.21 for x64 KB5007885), I deleted any new version and then go this site
Install (dotnet-sdk-3.1.415-win-x64_8b088c0e40d1317aa1b1b2613a3226b58012e505.exe) to solve the problem
The idea is that you must install the version shown by the problem code, and delete the newer and lower versions

The link you're giving there is for the SDK, not for the core. That won't work.
That said, this will not resolve the issue either. Windows will still try to apply patch 3.1.21, even though you have a newer one installed, and it will still fail.

That statement is most likely not correct as I could fix the install error by basically uninstalling existing products and reinstalling them.

The procedure is as follows:

  • Visit https://www.catalog.update.microsoft.com/
  • Enter the KB... number that fails on auto-update, here for example KB5007885
  • Click Download displayed next to the search result to open a window with all the installers associated with the KB number, one of these installers fails on auto-update and you need to find out which one, so ...
  • Download all installers linked in the upcoming window
  • Now try to run all these installers

When an installer fails, it will display the actual reason. On my side it was something along lines of Another version is already installed hence I uninstalled the associated version followed by a second try of running the installer ... and guess what, it installed the product. After running all the installer successfully, update the Windows Update dialog and hopefully, like in my case, the error is gone.

That's a nice idea but it doesn't actually work.

I downloaded the 10 files, even the x86 ones from the Microsoft Catalog. Installed all of them. All of them succeeded. No errors. No issue to fix.

Now what?

image

image

image

@cooperdk
Copy link

cooperdk commented Jan 10, 2022 via email

@rbhanda
Copy link
Contributor

rbhanda commented Jan 10, 2022

Hello everyone, Thanks a lot for reporting this issue. We have a request if you could share the logs with us for this failure:

• Run http://aka.ms/vscollect.exe and share the resulting vslogs.zip that is created in %temp%
• Run the powershell cmdlet Get-WindowsUpdateLog and share the resulting windowsupdate.log file that is created on your desktop

You can either email them to rbhanda@microsoft.com or attach them here in the comments.

@conioh
Copy link
Author

conioh commented Jan 10, 2022

@rbhanda after an incredible amount of work I managed to make the error in Windows Update go away, but now it installs these versions of .NET SDK and Runtimes (including the Desktop runtime) non-stop.
I remove them through the control panel and Windows Update installs them back.
Is that the intended behavior? All versions (3, 5, 6) of .NET SDK and Runtimes are necessary components of Windows?

Here it is in the middle of the installation:

image

I'm happy with runtimes 3.0.22 and 5.0.13, but someone somewhere decided that I must also be "updated" to 3.1.21 and 5.0.12.

And moments late we're there, with two pointless versions of the runtimes and two SDKs I don't want on my machine.

image

Are the same logs you requests relevant here or do you need something else for this?

@conioh
Copy link
Author

conioh commented Jan 10, 2022

@rbhanda, I'd like to make it clear, since the message may have gotten lost, that currently I'm getting KB5007884 and KB5007885:
(a) even if I have newer versions of .NET runtimes installed
(b) even if I don't have any version of these major versions installed (i.e. no .NET 3 or 5 installed at all)
(c) including SDK and not only runtimes

None of this is expected according to: https://devblogs.microsoft.com/dotnet/net-core-updates-coming-to-microsoft-update/

The only thing that might compatible with that post is installing a 3/5 runtime when 6 is already installed, according to the emphasized part:

These updates will be installed via Microsoft Update to computers with a Client operating system that have a supported major/minor version such as .NET Core 2.1, 3.1 or .NET 5.0 already installed.

But that's a peculiar interpretation. A reasonable interpretation would be "for each X for which there's .NET X installed you'll get the latest .NET X" or "for each (X, Y) for which there's .NET X.Y installed you'll get the latest .NET X.Y" but not "if you have any supported .NET version (for example 6) you'll get 'updates' for all other supported .NET versions (for example, 3 and 5)". Not to mention the rest of the sentence - "... with outdated version of those 3 and 5 and we'll push the SDKs too!"

@rbhanda
Copy link
Contributor

rbhanda commented Jan 10, 2022

Hi @conioh if you have any logs you could share it will be very helpful. I am working with the other team members who will be able to help us here. My apologies for a delayed response.

@Rogerdlin
Copy link

I have emailed you both the vslog.zip and WindowsUpdate.log 7 minutes ago, hope you already have it.

@Rogerdlin
Copy link

@rbhanda I have sent you both the log you were asking, do you have them now?

@Trezore
Copy link

Trezore commented Jan 10, 2022

Nice to have found this page!!! I too am having the same issue...
Figuring I will wait and keep track of progress. Do let me know if you want my logs as well. But from the looks of it, other logs will have it covered! :)

@thesilverdragon
Copy link

For me also, it seems that this specific update has already been installed on November 2021, but now Windows Update suddenly wants to install it again.

image

@IGR2014
Copy link

IGR2014 commented Jan 10, 2022

Windows 11 (10.0.22000.194), x64, same here

@farosch
Copy link

farosch commented Jan 10, 2022

Same for me:
Windows 11 21H2 22000.376, x64.
There are already newer versions of .NET Core 3.1 and .NET5 installed on my system as the ones Windows Update tries to install.

@Makru
Copy link

Makru commented Jan 10, 2022

Hi, i have the same issue with 2021-11 .NET Core 3.1.21 Update for x64 Client (KB5007885) -> Installationsfehler – 0x80070643.
I tried 20 different "solutions" from Google, without success. Also manual deinstallation and installation doesn't work.
Hopefully there is soon a solution....

@buyaa-n buyaa-n added the area-setup Issues related to installing .NET Core label Jan 10, 2022
@rbhanda
Copy link
Contributor

rbhanda commented Jan 10, 2022

Hello Everyone,

Thank you for reporting this issue. We have root caused it and it seems our December updates were unpublished causing previous November updates to be offered. We expect to publish a solution tomorrow morning, January 11th at 10am PST.

@Makru
Copy link

Makru commented Jan 10, 2022 via email

@richardevcom
Copy link

richardevcom commented Jan 11, 2022

The procedure is as follows:

* Visit https://www.catalog.update.microsoft.com/

* Enter the KB... number that fails on auto-update, here for example `KB5007885`

* Click `Download` displayed next to the search result to open a window with all the installers associated with the KB number, one of these installers fails on auto-update and you need to find out which one, so ...

* Download all installers linked in the upcoming window

* Now try to run all these installers

☝️Underrated solution.
The issue is indeed that it conflicts with other versions if installed.
So what I did was:

  1. I searched for KB5007885 and opened up corresponding packages in catalog https://www.catalog.update.microsoft.com/Search.aspx?q=KB5007885
  2. then I uninstalled conflicting packages and installed ones in catalog.
  3. and to be safe removed C:\Windows\SoftwareDistribution folder (sometimes Windows Update service has to be stopped so you don't get error that some files are being used)
  4. for extra step do clean reboot

@Froosh
Copy link

Froosh commented Jan 11, 2022

Updating Visual Studio to current version (I'm still using VS2019, so v16.11.8) solved the .NET 5.0.12 and .NET 3.1.21 issues for me.

@Monarch73
Copy link

Monarch73 commented Jan 11, 2022

I had the same issue. The Problem is that Windows Update wants to install 3.1.21 and 5.0.12 while new versions of the 3.1.x and 5.0.x core sdks where already installed by visual studio installer.

You can fix this error by checking the installers that were downloaded by Windows Update in the folder C:\Windows\SoftwareDistribution\Download\Install and run them manually. They will fail but they will tell you, what went wrong by providing you with a logfile.

You basically have to uninstall newer versions of the core sdks and run Windows Update again..
When windows updates is fixed, you need to download and install the newest versions of 3.1.x and 5.0.x core sdks manually.

@cooperdk
Copy link

cooperdk commented Jan 11, 2022 via email

@rbhanda
Copy link
Contributor

rbhanda commented Jan 11, 2022

Hello,
The December updates are live again. This issue should be resolved now

@AcidVienna
Copy link

@rbhanda Thx Rahul - issue is fixed, all updates now installed without problems! (Win11x64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-setup Issues related to installing .NET Core
Projects
None yet
Development

No branches or pull requests