How to Stop BASH from Opening AptPackageIndexUpdate on Windows 10

AptPackageIndexUpdate is a command that runs on a Bash shell. A bash shell is similar to a command prompt in Windows, except that it’s used on Linux. On latest releases of Windows 10 Microsoft has decided to incorporate this shell with the intention to make Linux more approachable for Windows Users as you would be able to learn about Linux commands. The Bash for Windows is not included in the Operating System you would normally have to enable the developer mode and install it as a new feature.

If the Bash shell is opening automatically running the command AptPackageIndexUpdate which basically updates the index for the sources available to download any Linux software, then you are facing an issue, because unfortunately, if you try to close this shell the system won’t allow you, even if you try through the Task Manager.

The reason this happens it’s because the Bash will create a task that runs automatically when the PC is Idle.

(Dec 18, 2016) Please note that up to today Windows has not provided an update to be able to force close the bash command.

Method 1: Disable or Delete the task through command.

  1. Hold the Windows Key and Press X. Choose Command Prompt (Administrator)
  2. Type down the following (please note all the spaces and quotes)

schtasks.exe /Delete /TN “\Microsoft\Windows\Windows Subsystem for Linux\AptPackageIndexUpdate”

  1. Restart your computer.

Method 2: Delete the task through task scheduler

  1. Hold the Windows Key and press R to get the run box.
  2. Type down taskschd.msc.
  3. Go to Task Scheduler Library/Microsoft/Windows/Windows Subsystem for Linux
  4. Right click on the task located on the center panel and click on Disable.
  5. Restart your computer.
Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

How to Stop BASH from Opening AptPackageIndexUpdate on Windows 10

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested