How to Fix Windows 10/11 Update Error 0x8007012f

You see a new Windows update and you try to install it, but it fails with an error 0x8007012f. The Windows Update error 0x8007012f on your Windows 10 PC can show up whenever you try to install any kind of Windows update (including apps, system, and feature updates). You may see an error like, “There were some problems installing updates, but we’ll try again later. If you keep seeing this and want to search the web or contact support for information, this may help: (0x8007012F)“. However, the good news is, we have a few possible solutions for this that may help you fix this error. Let’s see how.


ADVERTISEMENT

Method 1: By Deleting Contents SoftwareDistribution and catroot2

You would need to boot your PC into safe mode to be able to delete the the contents in the SoftwareDistribution folder.

Step 1: Right-click on Start menu and select Run to open the Run command.

 

Desktop Start Right Click Run

 

Step 2: Type msconfig in the Run command and hit Enter.

 

Msconfig

 

Step 3: In the System Configuration window, click on the Boot tab.

Check the box next to Safe boot.

*Note – If you need to use the internet while in Safe Mode, select the radio button next to Network.

Press Apply and then OK to save the changes

 

System Configuration Boot Safe Boot Check Network Apply Ok

 

Now, every time you turn on your PC, it will boot into Safe Mode. You can also undo the changes later on.

 

Step 4: Now, right-click on Start menu and select File Explorer.

 

Start Right Click File Explorer

 

Step 5: Copy and paste the below path in the File Explorer address bar and hit Enter:

 

C:\Windows\SoftwareDistribution

 

Now, press Ctrl + A keys together on your keyboard to select all the folder contents and hit Delete.

 

File Explorer Navigate To Path Ctrl + A Delete


ADVERTISEMENT

 

Step 6: Now, you would need to reset the catroot2 folder.

For this, go to Start and type Command Prompt in the Windows search bar.

 

Desktop Start Search Command Prompt

 

Step 7: Right-click on the result and select Run as administrator to open Command Prompt in elevated mode.

 

Start Search Command Prompt Right Click Run As Administrator

 

Step 8: Now, type the below commands one by one in the Command Prompt (admin) window and hit Enter after each command:

 

net stop cryptsvc


md %systemroot%\system32\catroot2.old


xcopy %systemroot%\system32\catroot2 %systemroot%\system32\catroot2.old /s

 

 

Step 9: You can now delete all the contents in the catroot2 folder.


ADVERTISEMENT


Now, type the below command in the Command Prompt (admin) window and hit Enter:

 

Command Prompt (admin) Run Command To Reset Catroot2 Folder Enter

 

Reboot your PC, start Windows Update again and the catroot2 folder should be reset.

 

Method 2: By Clearing Pending.xml File

 

Step 1: Press Win + R hotkey on your keyboard to open the Run command.

Step 2: In the Run command search box, type cmd and press Ctrl + Shift + Enter keys together to open the Command Prompt in admin mode .

 

Run Command Search Cmd Enter

 

Step 3: In the Command Prompt (admin) window, run the below command and hit Enter:

 

Ren c:\windows\winsxs\pending.xml pending.old

 

This will rename the pending.xml file to pending.old.

 

Method 3: By Clearing the BITS Queue

 

Step 1: For this, go to Start and type cmd in the Windows search bar.

 

Desktop Start Seach Cmd

 

Step 2: Now, right-click on the result (Command Prompt) and select Run as administrator to open Command Prompt with Admin rights.

 

Start Search Command Prompt Right Click Run As Administrator

 

Step 3: In the Command Prompt (admin) window, write the below command and hit Enter:

 

bitsadmin.exe /reset /allusers

 

Command Prompt (admin) Run Command To Clear Bits Queue Enter

 

Method 4: By Running BITS Troubleshooter

 

BITS (Background Intelligence Transfer Service) facilitates download, transfer, or uploading of files to and fro a client and a server. It then offers the progress report of the transfers. But, before you proceed using the BITS troubleshooter, make sure that you re-start the Background Intelligence Transfer Service. Let’s see how:

 

Step 1: Right-click on Start menu and click on Run to open the Run command.

 

Desktop Start Right Click Run

 

Step 2: In the Run command search field, type services.msc and hit Enter to open the Service manager window.

 

Run Command Search Services.msc Ok

 

Step 3: In the Services window, go to the right side and under thee Names column, look for Background Intelligence Transfer Service.

If it is Stopped, right-click on it and select Start.

 

Services Names Background Intelligence Transfer Service Right Click Start

 

Step 4: If it’s Started, then right-click on the service and select Restart.

 

Services Names Background Intelligence Transfer Service Right Click Restart

 

Step 5: Now, right-click on the service and select Properties.

 

Services Names Background Intelligence Transfer Service Right Click Properties

 

Step 6: In the Properties window, under the General tab, go to the Startup type field and set it to Manual.

Press Apply and then OK to save the changes and exit.

 

Bits Properties General Startup Type Manual Apply Ok

 

Now, proceed with the BITS trouble shooting.

 

Step 1: Click on the below link to download the Background Intelligence Transfer Service Troubleshooter.

 

http://aka.ms/diag_bits10

 

Step 2: Now, launch the troubleshooter and click on Advanced at the bottom.

 

Background Intelligence Transfer Service Troubleshoot Advanced

 

Step 3: Now, uncheck the box next to Apply repairs automatically and click on Next.

 

Apply Repairs Automatically Uncheck Next


ADVERTISEMENT

 

Step 4: It will start detecting problems. Once it completes the scan, it will display a list of possible causes for the issue.

Click on Next to proceed with the fix.

 

Select The Repairs You Want To Apply Next

 

Now, reboot your PC and the Windows Update error 0x8007012f  should be gone.

Method 5: By Running the Windows Update Troubleshooter

 

Step 1: Press Win + I keys together on your keyboard to open the Settings window.

Step 2: In the Settings window, click on Update & Security.

 

Settings Update & Security

 

Step 3: In the next window, select the Troubleshoot option on the left side of the pane.

 

Update & Security Left Side Troubleshoot

 

Step 4: Now, go to the right side of the window, scroll down and click on Additional troubleshooters.

 

Troubleshoot Right Side Additional Troubleshooters

 

Step 5: In the next window, under the Get up and running section, click on Windows Update.

Then click on Run the troubleshooter button below it.

 

Get Up And Running Windows Update Run The Troubleshooter

 

 

Now, let the troubleshooter run and detect the issues. If any issues found, it will fix them automatically.

 

ADVERTISEMENT