有时,某些Windows 更新(Windows Update)无法下载,或者即使您尝试了几次,也只是拒绝安装在您的计算机上。如果您遇到无法安装或下载Windows 更新(Windows Updates)的问题,那么本教程将帮助您识别和解决问题。
Windows 更新安装失败
如果在您的 Windows 10/8/7 上Windows 更新(Windows Update)无法安装、无法正常工作、更新将无法下载或一直失败,那么这些建议将帮助您解决和修复Windows 更新(Windows Updates)。
- 再试一次
- 删除临时文件(Delete Temporary Files)和浏览器缓存(Browser Cache)
- 禁用防火墙和防病毒(Anti-virus)软件
- 运行 SFC 和 DISM
- 运行 Windows 更新疑难解答
- 手动将Windows 更新组件重置(Reset Windows Update Components)为默认值
- 使用 FixWU
- 刷新SoftwareDistribution 文件夹(SoftwareDistribution Folder)
- 重置 Catroot 文件夹
- 检查 Windows 更新(Check Windows Update) 服务(Services)状态
- 检查 Windows 更新日志文件
- 清除pending.xml 文件
- 清除 BITS 队列
- 删除不正确的注册表值
- 运行 Windows 模块安装程序
- 运行后台智能传输服务疑难解答(Run Background Intelligent Transfer Service Troubleshooter)
- 下载其独立安装程序
- 使用经过身份验证的代理服务器
- (Run Windows Update)在干净启动状态下(Clean Boot State)运行 Windows 更新
- 借助Microsoft 虚拟代理(Microsoft Virtual Agent)
- 请联系 Microsoft 支持。
让我们详细了解所有这些潜在的修复。请先创建系统还原点。浏览整个帖子,然后查看其中哪些可能适用于您的系统。然后,您可以尝试其中任何一种,没有特定的顺序。
修复 Windows 更新错误
1]再试一次
如前所述,很多时候,更新可能第一次安装失败,但由于某种莫名其妙的原因,第二次或第三次尝试成功。所以多试几次。
2]删除临时文件(Delete Temporary Files)和浏览器缓存(Browser Cache)
如果您无法安装Windows 更新(Windows Updates),请先清除临时文件和浏览器缓存(Browser Cache),重新启动,然后重试。看看这是否有助于解决问题。最好(Best)且易于使用的内置磁盘清理实用程序(Disk Cleanup utility )或CCleaner。
3]禁用(Disable)防火墙和防(Firewall)病毒(Anti-virus)软件
暂时禁用(Disable)防火墙和防病毒软件,然后(Anti-virus)重(Firewall)试。这是您可以从防病毒扫描中排除的 Windows 文件和文件夹(Windows files and folders you may exclude from Antivirus scans)的列表。
4]运行SFC和DISM
运行系统文件检查器以替换可能损坏的系统文件。
您还可以使用DISM 工具修复损坏的(DISM Tool)Windows 更新(Windows Update)系统文件。Dism.exe工具(Dism.exe tool)可用于不同的情况,其中之一是修复损坏的 Windows 更新文件。请注意,如果要修复损坏的Windows Update 系统文件(Windows Update System Files),则需要运行不同的命令。如果您运行通常的/RestoreHealth命令,它可能不一定有帮助。
DISM将用好的文件替换可能损坏或丢失的系统文件。但是,如果您的Windows 更新客户端已经损坏(Windows Update client is already broken),系统将提示您使用正在运行的Windows安装作为修复源,或使用网络共享中的Windows并行文件夹作为文件源。
然后,您将需要运行以下命令:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess
在这里,您必须将C:\RepairSource\Windows占位符替换为修复源的位置。
该过程完成后,DISM将在(DISM)%windir%/Logs/CBS/CBS.log中创建一个日志文件,并捕获该工具发现或修复的任何问题。
这些可以帮助解决可能阻止Windows 更新(Windows Updates)安装的问题。
5]运行Windows更新疑难解答(Run Windows Update Troubleshooter)
使用Microsoft的Windows 更新疑难解答。它将Windows 更新(Windows Updates)设置重置为默认值。您还可以运行 Microsoft 的在线 Windows 疑难解答(Online Windows Troubleshooter)。
6]手动将Windows更新组件重置(Manually Reset Windows Update Components)为默认值
使用 重置 Windows 更新代理工具(Reset Windows Update Agent Tool)(Microsoft 工具)或重置 Windows 更新工具(来自第 3 方),看看它是否对您有帮助。此PowerShell 脚本将帮助您重置 Windows 更新客户端(PowerShell script will help you Reset Windows Update Client)。如果您想手动将每个 Windows 更新组件重置为默认值(manually reset each Windows Update components to default),请参阅这篇文章。
7]使用FixWU
使用我们的Fix WU 工具,看看它是否有帮助。它重新注册Windows 更新(Windows Updates)正常运行所需的所有 dll、ocx 和 ax 文件。
8]刷新(Flush)软件分发文件夹(Software Distribution Folder)
刷新SoftwareDistribution 文件夹(SoftwareDistribution Folder)。以管理员身份运行命令提示符。(Run Command Prompt)在计算机屏幕上出现的CMD框中,输入以下文本字符串,一次一个,然后按 Enter(Enter)。
net stop wuauserv
net stop bits
现在浏览到 C:\Windows\SoftwareDistribution 文件夹并删除其中的所有文件和文件夹。
如果文件正在使用中,请重新启动您的设备。重新启动后,再次运行上述命令。顺便说一句,您的 Windows 应用商店应用程序(App)需要关闭,所以不要启动它。
现在您将能够从提到的Software Distribution 文件夹(Software Distribution folder)中删除文件。现在在命令提示符(Command Prompt)窗口中,一次输入以下命令,然后按 Enter(Enter):
net start wuauserv
net start bits
重启(Reboot)。如果您使用的是Windows 更新(Windows Update),请尝试使用Microsoft 更新(Microsoft Updates) ,反之亦然。
9]重置Catroot文件夹
重置 Catroot 文件夹(Reset the Catroot folder)并查看。要重置 catroot2 文件夹,请执行以下操作:
打开提升的命令提示符(Command Prompt),依次键入以下命令并按 Enter:
net stop cryptsvc
md %systemroot%\system32\catroot2.old
xcopy %systemroot%\system32\catroot2 %systemroot%\system32\catroot2.old /s
接下来,删除 catroot2 文件夹的所有内容。
完成此操作后,在CMD窗口中,键入以下内容并按 Enter:
net start cryptsvc
一旦您再次启动Windows 更新(Windows Update),您的 catroot 文件夹将被重置。
阅读(Read): 如果启用快速启动,Windows 更新可能会失败(Windows Updates may fail if Fast Startup is enabled)。
10]检查Windows更新(Check Windows Update) 服务(Services)状态
打开Windows 服务管理器(Windows Services Manager)并检查 Windows Update 相关服务(check the Windows Update related Services),如 Windows Update、Windows Update Medic、Update Orchestrator服务等是否未禁用。
独立 Windows 11/10 PC 上的默认配置如下:
- Windows 更新服务 - 手动(Windows Update Service – Manual)(触发(Triggered))
- Windows更新医疗(Update Medic) 服务(Services) - 手册(– Manual)
- 加密服务 - 自动
- 后台智能传输服务 - 手动(Background Intelligent Transfer Service – Manual)
- DCOM 服务器进程启动器 - 自动(DCOM Server Process Launcher – Automatic)
- RPC 端点映射器 - 自动
- Windows 安装程序 - 手动。
这将确保所需的服务可用。
除了直接服务之外,您还应该找到 Windows Update 服务的依赖关系,(find the dependencies of Windows Update service)并确保它们是否正在运行。
要开始使用,请在任务栏(Taskbar)搜索框中搜索“服务”,然后单击搜索结果。打开Services窗口后,找到Windows Update、DCOM Server Process Launcher和RPC Endpoint Mapper。检查它们是否正在运行。
如果没有,您需要一个接一个地启动这些服务。
11]检查Windows更新日志文件
如果仍然存在问题,请转到C:\Windows\WindowsUpdate.log 并查找最新条目。这将出现在日志的末尾。任何失败的更新都会在它们旁边写上错误代码。记下它们。如果您发现太多条目太混乱,请删除此WindowsUpdate.log并再次尝试安装有问题的更新。
现在打开新创建的WindowsUpdate日志文件并查看其内容。
警告可能会显示为 -: WARNING: Failed to find updates with error code AAAAAAAAA.(WARNING: Failed to find updates with error code AAAAAAAA.)
现在Right-click Computer > Manage > Event Viewer > Applications and Service Logs > Microsoft > Windows > WindowsUpdateClient > Operational。检查任何重要消息或警告(Warning)。
接下来,请参阅Windows 更新错误代码(Windows Update Error Codes)。这将为您提供可能需要寻找解决方案的方向。您也可以在此处搜索 Windows Update 错误代码,看看是否有特定的解决方案可用。
12]清除pending.xml文件
打开提升的命令提示符窗口,键入以下内容并按 Enter:
Ren c:\windows\winsxs\pending.xml pending.old
这会将pending.xml 文件重命名为pending.old。现在再试一次。
13]清除BITS队列
清除所有当前作业的BITS队列。为此,请在提升的CMD中键入以下内容并按Enter:
bitsadmin.exe /reset /allusers
14]删除(Delete)不正确的注册表(Registry)值
打开注册表编辑器(Registry Editor)并导航到以下键:
HKEY_LOCAL_MACHINE\COMPONENTS
右键单击组件(COMPONENTS)。现在在右窗格中,如果存在以下内容,请删除它们:
- PendingXml 标识符
- 下一个队列条目索引
- AdvancedInstallersNeedResolving
重新启动计算机并重试。
15]运行Windows模块安装程序
Windows 模块安装程序(Windows Module Installer)是内置的Windows 10(Windows 10)服务。它可以让您修复卡住的Windows更新。(Windows)
要使用它,请以管理员权限打开命令提示符。
键入以下内容并按 Enter:
SC config trustedinstaller start=auto
成功执行后,您应该会在命令提示符(Command Prompt)控制台中看到[SC] ChangeServiceConfig SUCCESS显示。([SC] ChangeServiceConfig SUCCESS)
退出命令提示符,并检查按钮是否恢复正常。
16]运行后台智能传输服务疑难解答(Run Background Intelligent Transfer Service Troubleshooter)
运行后台智能传输服务疑难解答(Background Intelligent Transfer Service Troubleshooter),看看它是否有帮助。后台智能传输服务(Background Intelligent Transfer Service)或BITS有助于在客户端和服务器之间传输、下载或上传文件,并提供与传输相关的进度信息。它还在从对等点下载文件中发挥作用。此Windows 服务(Windows Service)对于Windows 更新(Windows Updates)正常工作至关重要。
17]下载(Download)其独立安装程序
Search on the Microsoft Update Catalog website for the Windows Update patch using the Update KB number, and download its stand-alone installer. Now apply the patch manually. Search for just the number; don’t include KB.
18] Use authenticated Proxy Servers
You can use authenticated Proxy Servers to fix Windows Update and Microsoft Store app Installation errors.
19] Run Windows Update in Clean Boot State
Boot in Clean Boot State and run Windows Update and see if this helps. It works in most cases.
阅读(Read):Windows 更新不断自动禁用自身(Windows Update keeps disabling itself automatically)。
20]借助Microsoft Virtual Agent
如果您在下载或安装Windows 更新(Windows Updates)时遇到错误,您还可以通过单击此处获得(clicking here)Microsoft Virtual Agent的帮助。
21]联系微软支持
如果没有任何帮助,您可以随时联系 Microsoft 支持(contact Microsoft Support)。他们肯定能够帮助你。
有助于修复相关 Windows 更新问题的帖子:(Posts that help fix related Windows Update problems:)
我们希望这里的某些内容可以帮助您解决Windows 更新(Windows Updates)问题。
Windows Update failed to install or will not download in Windows 11/10
Sometimes, some Windows Updatе fails to download, or jυѕt refuse to get installed on your computer even when you try a couple of times. If you faсe this problem whеre Windows Updates will not іnstall or download, then this tutorial will help you іdentify and troubleshoot the problеm.
Windows Update failed to install
If Windows Update fails to install, is not working, updates will not download or keep failing, on your Windows 10/8/7 then these suggestions will help you troubleshoot & fix Windows Updates.
- Try again
- Delete Temporary Files and Browser Cache
- Disable your Firewall and Anti-virus software
- Run SFC and DISM
- Run Windows Update Troubleshooter
- Manually Reset Windows Update Components to default
- Use FixWU
- Flush the SoftwareDistribution Folder
- Reset the Catroot folder
- Check Windows Update Services status
- Check Windows Update log file
- Clear pending.xml file
- Clear the BITS queue
- Delete incorrect Registry values
- Run Windows Module Installer
- Run Background Intelligent Transfer Service Troubleshooter
- Download its stand-alone installer
- Use authenticated Proxy Servers
- Run Windows Update in Clean Boot State
- Take the help of Microsoft Virtual Agent
- Contact Microsoft Support.
Let us see all these potential fixes in detail. Do create a system restore point first. Go through the entire post and then see which of these may apply to your system. You may then try any of these, in no particular order.
Fix Windows Update Errors
1] Try again
As mentioned earlier, many times, an update may fail to install in the first instance, but for some inexplicable reason, succeeds in the 2nd or 3rd try. So try a couple of times.
2] Delete Temporary Files and Browser Cache
If you are unable to install Windows Updates, first clear up your Temporary Files and Browser Cache, reboot, and try again. See if this helps resolve the issue. Best and easy to use the built-in Disk Cleanup utility or CCleaner.
3] Disable your Firewall and Anti-virus software
Temporarily Disable your Firewall and Anti-virus software and try again. Here is a list of Windows files and folders you may exclude from Antivirus scans.
4] Run SFC and DISM
Run System File Checker to replace potentially corrupted system files.
You can also fix corrupted Windows Update system files using DISM Tool. The Dism.exe tool can be used in different situations, and one of them is to repair a corrupted Windows Update files. Do note that you need to run a different command if you want to repair corrupted Windows Update System Files. If you run the usual /RestoreHealth command, it may not necessarily help.
DISM will replace potentially corrupted or missing system files with good ones. However, if your Windows Update client is already broken, you will be prompted to use a running Windows installation as the repair source or use a Windows side-by-side folder from a network share, as the source of the files.
You will then be required to run the following command instead:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess
Here you have to replace the C:\RepairSource\Windows placeholder with the location of your repair source.
Once the process is complete, DISM will create a log file in %windir%/Logs/CBS/CBS.log and capture any issues that the tool finds or fixes.
These can help fix problems that might prevent Windows Updates from installing.
5] Run Windows Update Troubleshooter
Use the Windows Update Troubleshooter from Microsoft. It resets Windows Updates settings to defaults. You may also run the Online Windows Troubleshooter from Microsoft.
6] Manually Reset Windows Update Components to default
Use the Reset Windows Update Agent Tool (Microsoft tool) or the Reset Windows Update Tool (From a 3rd-party) and see if it helps you. This PowerShell script will help you Reset Windows Update Client. See this post if you want to manually reset each Windows Update components to default.
7] Use FixWU
Use our Fix WU tool and see if it helps. It re-registers all the dll, ocx, and ax files required for the proper functioning of Windows Updates.
8] Flush the Software Distribution Folder
Flush the SoftwareDistribution Folder. Run Command Prompt as administrator. In the CMD box that appears on the computer screen, enter the following strings of text, one at a time, and hit Enter.
net stop wuauserv
net stop bits
Now browse to the C:\Windows\SoftwareDistribution folder and delete all the files and folders inside.
If the files are in use, restart your device. After rebooting, run the commands above again. Your Windows Store App needs to be closed, by the way, so do not start it.
Now you will be able to delete the files from the mentioned Software Distribution folder. Now in the Command Prompt windows, type the following commands one at a time, and hit Enter:
net start wuauserv
net start bits
Reboot. If you are using Windows Update, try using Microsoft Updates or vice versa.
9] Reset the Catroot folder
Reset the Catroot folder and see. To reset the catroot2 folder do this:
Open an elevated Command Prompt, type the following command one after the other and hit Enter:
net stop cryptsvc
md %systemroot%\system32\catroot2.old
xcopy %systemroot%\system32\catroot2 %systemroot%\system32\catroot2.old /s
Next, delete all the contents of the catroot2 folder.
Having done this, in the CMD windows, type the following and hit Enter:
net start cryptsvc
Your catroot folder will be reset, once you start Windows Update again.
Read: Windows Updates may fail if Fast Startup is enabled.
10] Check Windows Update Services status
Open Windows Services Manager and check the Windows Update related Services like Windows Update, Windows Update Medic, Update Orchestrator Services, etc are not disabled.
The default configuration on a standalone Windows 11/10 PC is as follows:
- Windows Update Service – Manual (Triggered)
- Windows Update Medic Services – Manual
- Cryptographic Services – Automatic
- Background Intelligent Transfer Service – Manual
- DCOM Server Process Launcher – Automatic
- RPC Endpoint Mapper – Automatic
- Windows Installer – Manual.
This will ensure that the required Services are available.
Apart from the direct service, you should find the dependencies of Windows Update service and ensure if they are running or not.
To get started, search for “services” in the Taskbar search box and click on the search result. After opening the Services window, find out Windows Update, DCOM Server Process Launcher, and RPC Endpoint Mapper. Check if they are running or not.
If not, you need to start those services one after one.
11] Check Windows Update log file
If still, you have a problem then, go to C:\Windows\WindowsUpdate.log and look for the most recent entry. This will be present towards the end of the log. Any failed updates will have error code/s written next to them. Note them down. If you find just too many entries too confusing delete this WindowsUpdate.log and try installing the problematic updates again.
Now open the newly re-created WindowsUpdate log file and have a look at its contents.
The warnings will probably appear as -: WARNING: Failed to find updates with error code AAAAAAAA.
Now Right-click Computer > Manage > Event Viewer > Applications and Service Logs > Microsoft > Windows > WindowsUpdateClient > Operational . Check out for any Critical Message or Warning.
Next, refer to the Windows Update Error Codes. This will give you the direction in which you may have to look for the solution. You may also search for the Windows Update error code here and see if a specific solution is available.
12] Clear pending.xml file
Open an elevated command prompt window, type the following and hit Enter:
Ren c:\windows\winsxs\pending.xml pending.old
This will rename pending.xml file to pending.old. Now try again.
13] Clear the BITS queue
Clear the BITS queue of any current jobs. To do this, type the following in an elevated CMD and hit Enter:
bitsadmin.exe /reset /allusers
14] Delete incorrect Registry values
Open Registry Editor and navigate to the following key:
HKEY_LOCAL_MACHINE\COMPONENTS
Right-click COMPONENTS. Now in the right-pane, delete the following if they exist:
- PendingXmlIdentifier
- NextQueueEntryIndex
- AdvancedInstallersNeedResolving
Restart your computer and try again.
15] Run Windows Module Installer
The Windows Module Installer is a built-in Windows 10 service. It lets you fix the Windows updates which are stuck.
To use this, open a command prompt with admin privileges.
Type the following and hit Enter:
SC config trustedinstaller start=auto
Once successfully executed, you should see [SC] ChangeServiceConfig SUCCESS display within the Command Prompt console.
Exit the command prompt, and check if the buttons are back to normal.
16] Run Background Intelligent Transfer Service Troubleshooter
Run the Background Intelligent Transfer Service Troubleshooter and see if it helps. Background Intelligent Transfer Service or BITS helps in the transfer, download or upload of files between a client and server, and provides progress information related to the transfers. It also plays a role in the download of files from a peer. This Windows Service is essential for Windows Updates to work properly.
17] Download its stand-alone installer
Search on the Microsoft Update Catalog website for the Windows Update patch using the Update KB number, and download its stand-alone installer. Now apply the patch manually. Search for just the number; don’t include KB.
18] Use authenticated Proxy Servers
You can use authenticated Proxy Servers to fix Windows Update and Microsoft Store app Installation errors.
19] Run Windows Update in Clean Boot State
Boot in Clean Boot State and run Windows Update and see if this helps. It works in most cases.
Read: Windows Update keeps disabling itself automatically.
20] Take the help of Microsoft Virtual Agent
If you’re getting an error downloading or installing Windows Updates, you could also take the help of Microsoft Virtual Agent, by clicking here.
21] Contact Microsoft Support
If nothing helps, you can always contact Microsoft Support. They will surely be able to help you.
Posts that help fix related Windows Update problems:
We hope something here has helped you fix your Windows Updates issues.