当系统更新安装失败时, Microsoft Windows(Microsoft Windows)显示错误 0x800f0831。发生这种情况的最常见原因是您的系统文件已损坏。您还会收到上述错误,因为您的互联网连接无法正常工作、您的电脑使用了错误的日期和时间、Windows 的更新缓存已损坏等等。
但是,您可以修复这些有问题的文件并应用一些其他解决方案来解决Windows中的更新问题。就是这样。
![](https://lh3.googleusercontent.com/-GPlpZXhW8dw/ZT4mEGJLc0I/AAAAAAABQkI/S_Ug6xtqI-00HfwHa3omgjXTVTDHHByQQCNcBGAsYHQ/s0/992260a1f5.jpeg)
检查您的互联网连接
当Windows(Windows)更新无法下载或安装时,首先要检查的是您的互联网连接。Windows依赖您的互联网连接来成功更新文件。不活动的连接会中断该过程,导致更新失败。
在您的电脑上启动网络浏览器并打开一个网站。如果您可以访问该站点,则表明您的连接正常。如果您的网站无法打开,则表明您的互联网连接有问题。
您可以通过重新启动路由器(rebooting your router)、将电脑重新连接到网络以及使用其他互联网故障排除技巧(internet troubleshooting tips)来解决连接问题。
(Fix Windows Update Error)通过关闭代理
修复 Windows 更新错误
您的电脑代理通过第三方服务器路由您的互联网流量,有时会导致您的互联网功能(例如Windows Update)出现问题。在这种情况下,请禁用代理服务器(disable your proxy server)并查看问题是否得到解决。
- 按Windows + I
打开Windows 设置。(Windows Settings)
- (Select Network)在左侧边栏中
选择网络和互联网。
- 在右侧窗格中选择代理。
- 关闭自动(Automatically)检测设置选项。
![](https://lh3.googleusercontent.com/-lSedSuf1fY8/ZT4i9EreoMI/AAAAAAABPzA/lniAqY_yd0oSjrThylark53RE5E2IeZ6ACNcBGAsYHQ/s0/4a045a3589.png)
- 选择“使用(Use)代理服务器”旁边的“设置(Set)” ,然后关闭“使用(Use)代理服务器”选项。
- 运行 Windows 更新。
重新启动您的Windows 10/Windows 11 电脑
系统的小故障可能会导致Windows更新失败。在这种情况下,您可以重新启动电脑(reboot your PC)来修复操作系统的许多小问题。
确保(Make)在关闭计算机之前保存未保存的工作。
- 通过选择“开始”(Start)按钮或按Windows键打开“开始”(Start)菜单。
- 选择电源(Power)图标并选择重新启动(Restart)以重新启动您的电脑。
![](https://lh3.googleusercontent.com/-Pq7MBzox5D8/ZT4meppjaNI/AAAAAAABQq0/m5rNfqjSj7Ya9NNRtnoxgZ4RlcqpbdacgCNcBGAsYHQ/s0/a3fcc7289c.jpg)
(Set)在您的(Your)电脑
上设置正确的(Correct Date)日期和时间(Time)
某些 Windows(Certain Windows)功能和应用程序要求您的电脑使用正确的日期和时间(use the correct date and time)配置。如果你的电脑使用了错误的日期和时间设置,请修复该问题以解决Windows更新 0x800f0831 错误。
- 按Windows + I 打开Windows 设置(Windows Settings)。
- (Select Time)在左侧边栏中选择时间和语言,在右侧窗格中
选择日期和时间。(Date)
- 打开右侧的自动设置(Set)时间和自动设置时区选项。(Set)
![](https://lh3.googleusercontent.com/-GFxVwe1-iV8/ZTvJ5ZVH1XI/AAAAAAABKmQ/d9SPeJe9QBQjTEkEyT-vCYXybWrDs1VLwCNcBGAsYHQ/s0/96e725721c.png)
清除 Windows 更新缓存
Windows将系统更新文件存储在存储上称为更新缓存的特定文件夹中。此缓存可能已损坏,导致您无法安装更新。
在这种情况下,请清除 Windows 更新缓存,然后您的 0x800f0831 错误就会得到解决。
- 按 Windows + R 打开“运行”。
- 在“运行”(Run)框中键入以下内容并按 Enter:
services.msc
- 右键单击服务列表上的“Windows Update” ,然后选择(Windows Update)“停止”(Stop)。这会在您清除缓存之前停止Windows Update服务。(Windows Update)
![](https://lh3.googleusercontent.com/-sCFDkF3mDUg/ZTvPiv6YqiI/AAAAAAABLm0/MAGe1vY2g1MSJB8ijK4I_pDvtRB2sX3RgCNcBGAsYHQ/s0/73690c2c75.jpg)
- 使用相同的组合键再次打开“运行”框。(Run)然后,键入以下内容并按 Enter:
C:WindowsSoftwareDistribution
- (Select)按Ctrl + A
选择文件夹中的所有文件。
- 将(Drag)选定的文件拖到顶部的垃圾桶图标以删除所有文件。然后,关闭文件资源管理器(File Explorer)窗口。
![](https://lh3.googleusercontent.com/-o-aA7BQsN_s/ZTvDRSmg3YI/AAAAAAABJjo/kBqC4yIVkYo1sLAMh6W7BweTwggmOEAdQCNcBGAsYHQ/s0/6a525a60f8.png)
- 返回“服务”(Services)窗口,右键单击“Windows Update”服务,然后选择“启动”(Start)。
使用Windows 更新疑难解答(Windows Update Troubleshooter)
Windows包含许多疑难解答程序来帮助您解决系统问题。当您收到更新错误 0x800f0831 时,您可以运行Windows 更新(Windows Update)疑难解答来查找并修复更新问题(fix problems with your updates)。
该疑难解答程序在大多数情况下会自行运行,因此您无需执行太多操作即可解决问题。
- 右键单击“开始”(Start)并选择“设置”。
- 选择(Select System)左侧的“系统”和右侧的
“故障排除” 。(Troubleshoot)
- 选择其他疑难解答。
- 选择“Windows 更新”(Windows Update)旁边的“运行”(Run)以启动疑难解答程序。
![](https://lh3.googleusercontent.com/-c5Kz_LzMevw/ZTvTdEuaeEI/AAAAAAABMK8/_i02qpO2I94zgrHzHEFzmUEOaxzHoaORwCNcBGAsYHQ/s0/a8e2e50675.png)
- 等待(Wait)该工具检测问题并提供针对这些问题的修复。
- (Reboot)使用完疑难解答程序后,
重新启动电脑。
修复组件存储
Microsoft 建议您在遇到 0x800f0831 更新错误时修复组件存储。(repairing the component store)您可以通过从 PC 的命令提示符(Command Prompt)实用程序运行一些命令来解决此问题。
- 打开“开始”(Start),找到“命令提示符”(Command Prompt),然后选择“以管理员身份运行”(Run)。
![](https://lh3.googleusercontent.com/-YBryj1h62og/ZTu4deb2K3I/AAAAAAABIHo/-caiyKLE7_EdOPrvBMceAdFjxZo9bgn9wCNcBGAsYHQ/s0/2f066d29f1.jpg)
- (Choose Yes)在用户帐户控制提示中(User Account Control)选择是。
- 在CMD(CMD)窗口中键入以下命令并按 Enter:
DISM /online /cleanup-image /scanhealth
![](https://lh3.googleusercontent.com/-daWT0y7nYis/ZTvlXO4BluI/AAAAAAABOv0/fBEtNZNlYL4MLTEmy9w81UnAd2jjP3rWQCNcBGAsYHQ/s0/fc521afb57.png)
- 接下来,运行以下命令:
DISM /online /cleanup-image /checkhealth
- 运行完上述命令后,执行以下命令:
DISM /online /cleanup-image /restorehealth
- 最后,运行以下系统文件检查器(System File Checker)命令来修复系统损坏的文件:
sfc /scannow
- 尝试更新您的 Windows 电脑。
手动下载(Download)并安装(Install)更新_(Update)
如果您的更新未安装并且Windows继续显示 0x800f0831 错误,您可以在电脑上手动下载并安装特定更新。(manually download and install your specific update)这样,即使官方Windows 更新(Windows Update)功能无法下载和安装更新,您也可以获取更新。
- 请记下 PC 上错误对话框中的更新名称。
- 在电脑上打开 Web 浏览器并启动Microsoft 更新目录(Microsoft Update Catalog)网站。
- 输入(Enter)您之前在网站上记下的更新名称,然后选择“搜索”(Search)。
![](https://lh3.googleusercontent.com/-4cymjA3zpf4/ZTvN2LuSrzI/AAAAAAABLT8/a1AS72GOtlUwo71KsNKtylYaqaLlMGeYACNcBGAsYHQ/s0/342391a957.png)
- 从列表中下载更新。
![](https://lh3.googleusercontent.com/-ig0Afua28GI/ZTvBXloG5yI/AAAAAAABJTQ/jBw6C5lNaVMfv1Qt7odixHcsaSNt1lTYACNcBGAsYHQ/s0/5fa91ff23b.png)
- 运行下载的文件以在您的电脑上安装更新。
绕过Windows 错误代码 0x800f0831(Windows Error Code 0x800f0831)以成功安装更新
安装最新的Windows更新可确保您的电脑保持安全并且您可以访问最新功能。遗憾的是,如果Windows(Windows)无法下载或安装更新文件,
您将无法执行此操作。
使用上述方法,您应该能够解决更新错误(resolve your update error)0x800f0831 并将您的电脑安装到最新版本的Windows操作系统。
How to Fix a Windows Update Error 0x800f0831
Miсrоsoft Windows displays the еrror 0x800f0831 when a system update fails to inѕtall. The most common reason this happens is that your system files are corrupt. You also get the аboνe error becausе your internet connection isn’t working, your PC is using the wrong date and time, Windows’ update cache іs corrupt, and more.
However, you can fix those problematic files and apply a few other solutions to resolve your update issue in Windows. Here’s how.
![](https://lh3.googleusercontent.com/-GPlpZXhW8dw/ZT4mEGJLc0I/AAAAAAABQkI/S_Ug6xtqI-00HfwHa3omgjXTVTDHHByQQCNcBGAsYHQ/s0/992260a1f5.jpeg)
Check Your Internet Connection
The first thing to check when a Windows update fails to download or install is your internet connection. Windows relies on your internet connection to successfully update files. An inactive connection interrupts that process, causing your updates to fail.
Launch a web browser on your PC and open a site. If you can access the site, your connection is working. If your site fails to open, your internet connection has a problem.
You can fix your connection issues by rebooting your router, reconnecting your PC to your network, and using other internet troubleshooting tips.
Fix Windows Update Error by Turning Off Your Proxy
Your PC’s proxy routes your internet traffic via a third-party server, sometimes causing problems with your internet-enabled features, like Windows Update. In this case, disable your proxy server and see if your issue is resolved.
- Open Windows Settings by pressing Windows + I.
- Select Network & internet in the left sidebar.
- Choose Proxy on the right pane.
- Turn off the Automatically detect settings option.
![](https://lh3.googleusercontent.com/-lSedSuf1fY8/ZT4i9EreoMI/AAAAAAABPzA/lniAqY_yd0oSjrThylark53RE5E2IeZ6ACNcBGAsYHQ/s0/4a045a3589.png)
- Select Set up next to Use a proxy server and turn off the Use a proxy server option.
- Run a Windows update.
Restart Your Windows 10/Windows 11 PC
Your system’s minor glitches can cause Windows updates to fail. In this case, you can reboot your PC to fix many minor problems with your operating system.
Make sure to save your unsaved work before turning off your computer.
- Open the Start menu by selecting the Start button or pressing the Windows key.
- Select the Power icon and choose Restart to reboot your PC.
![](https://lh3.googleusercontent.com/-Pq7MBzox5D8/ZT4meppjaNI/AAAAAAABQq0/m5rNfqjSj7Ya9NNRtnoxgZ4RlcqpbdacgCNcBGAsYHQ/s0/a3fcc7289c.jpg)
Set the Correct Date and Time on Your PC
Certain Windows functions and apps require your PC to use the correct date and time configuration. If your PC is using the wrong date and time settings, fix that to resolve your Windows update 0x800f0831 error.
- Press Windows + I to open Windows Settings.
- Select Time & language in the left sidebar and Date & time on the right pane.
- Turn on both Set time automatically and Set time zone automatically options on the right.
![](https://lh3.googleusercontent.com/-GFxVwe1-iV8/ZTvJ5ZVH1XI/AAAAAAABKmQ/d9SPeJe9QBQjTEkEyT-vCYXybWrDs1VLwCNcBGAsYHQ/s0/96e725721c.png)
Clear the Windows Update Cache
Windows stores your system update files in a specific folder on your storage called the update cache. This cache may have gone corrupt, preventing you from installing your updates.
In this case, clear your Windows update cache, and your 0x800f0831 error will be resolved.
- Open Run by pressing Windows + R.
- Type the following in the Run box and press Enter:
services.msc
- Right-click Windows Update on the service list and select Stop. This stops the Windows Update service before you clear the cache.
![](https://lh3.googleusercontent.com/-sCFDkF3mDUg/ZTvPiv6YqiI/AAAAAAABLm0/MAGe1vY2g1MSJB8ijK4I_pDvtRB2sX3RgCNcBGAsYHQ/s0/73690c2c75.jpg)
- Open the Run box again using the same key combination. Then, type the following and press Enter:
C:\Windows\SoftwareDistribution
- Select all files in the folder by pressing Ctrl + A.
- Drag your selected files to the trash can icon at the top to remove all the files. Then, close your File Explorer window.
![](https://lh3.googleusercontent.com/-o-aA7BQsN_s/ZTvDRSmg3YI/AAAAAAABJjo/kBqC4yIVkYo1sLAMh6W7BweTwggmOEAdQCNcBGAsYHQ/s0/6a525a60f8.png)
- Back on the Services window, right-click the Windows Update service, and choose Start.
Use the Windows Update Troubleshooter
Windows includes many troubleshooters to help you fix issues on your system. When you get an update error 0x800f0831, you can run the Windows Update troubleshooter to find and fix problems with your updates.
This troubleshooter runs on its own for the most part, so you don’t have to do much to resolve your problem.
- Right-click Start and choose Settings.
- Select System on the left and Troubleshoot on the right.
- Choose Other troubleshooters.
- Select Run next to Windows Update to launch the troubleshooter.
![](https://lh3.googleusercontent.com/-c5Kz_LzMevw/ZTvTdEuaeEI/AAAAAAABMK8/_i02qpO2I94zgrHzHEFzmUEOaxzHoaORwCNcBGAsYHQ/s0/a8e2e50675.png)
- Wait for the tool to detect issues and offer fixes for those issues.
- Reboot your PC when you’ve finished using the troubleshooter.
Repair the Component Store
Microsoft recommends repairing the component store when you encounter a 0x800f0831 update error. You can fix that by running a few commands from your PC’s Command Prompt utility.
- Open Start, find Command Prompt, and select Run as administrator.
![](https://lh3.googleusercontent.com/-YBryj1h62og/ZTu4deb2K3I/AAAAAAABIHo/-caiyKLE7_EdOPrvBMceAdFjxZo9bgn9wCNcBGAsYHQ/s0/2f066d29f1.jpg)
- Choose Yes in the User Account Control prompt.
- Type the following command on the CMD window and press Enter:
DISM /online /cleanup-image /scanhealth
![](https://lh3.googleusercontent.com/-daWT0y7nYis/ZTvlXO4BluI/AAAAAAABOv0/fBEtNZNlYL4MLTEmy9w81UnAd2jjP3rWQCNcBGAsYHQ/s0/fc521afb57.png)
- Next up, run the following command:
DISM /online /cleanup-image /checkhealth
- Execute the following command when you’ve finished running the above command:
DISM /online /cleanup-image /restorehealth
- Finally, run the following System File Checker command to fix your system’s corrupt files:
sfc /scannow
- Try to update your Windows PC.
Manually Download and Install the Update
If your update doesn’t install and Windows continues to display the 0x800f0831 error, you can manually download and install your specific update on your PC. This allows you to get the update even when the official Windows Update feature fails to download and install the update.
- Note the update name from the error dialog box on your PC.
- Open a web browser on your PC and launch the Microsoft Update Catalog site.
- Enter the update name you noted earlier on the site and select Search.
![](https://lh3.googleusercontent.com/-4cymjA3zpf4/ZTvN2LuSrzI/AAAAAAABLT8/a1AS72GOtlUwo71KsNKtylYaqaLlMGeYACNcBGAsYHQ/s0/342391a957.png)
- Download the update from the list.
![](https://lh3.googleusercontent.com/-ig0Afua28GI/ZTvBXloG5yI/AAAAAAABJTQ/jBw6C5lNaVMfv1Qt7odixHcsaSNt1lTYACNcBGAsYHQ/s0/5fa91ff23b.png)
- Run the downloaded file to install the update on your PC.
Get Around the Windows Error Code 0x800f0831 to Install Your Updates Successfully
Installing the latest Windows updates ensures your PC remains secure and you can access the latest features. Unfortunately, you can’t do this if Windows fails to download or install your update files.
Using the methods outlined above, you should be able to resolve your update error 0x800f0831 and bring your PC to the most recent version of the Windows operating system.