Quantcast
Channel: Kevin Arrows | Network Engineer | Appuals.com
Viewing all articles
Browse latest Browse all 4499

How to Stop BASH from Opening AptPackageIndexUpdate on Windows 10

$
0
0

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.

The post How to Stop BASH from Opening AptPackageIndexUpdate on Windows 10 appeared first on Appuals.com.


Viewing all articles
Browse latest Browse all 4499

Trending Articles