apt-get missing from bash

  • Thread starter Thread starter Windows Central Question
  • Start date Start date
W

Windows Central Question

I installed build 14328 and added bash. Love bash! However, on my installation apt-get is missing:
bash: apt-get: command not found

I haven't seen other people having this issue, but I'm not sure what to do. This morning I updated to the newest build, 14332, but that didn't help.

I tried uninstalling bash by going into Windows features and unchecking the Ubuntu on Windows checkbox, but while that did have me reboot, it didn't actually remove bash, and it didn't make apt-get appear. When I went back to Windows features, the checkbox was still unchecked. I checked it again, and it had me reboot again, but apt-get still did not appear.

Any theories on why apt-get might be missing?
 
re:

Good idea, but no. I've been trying no spaces "apt-get" but I tried "apt -get" in case there was a strange implementation here, but that didn't work either.
 
re:

OK I found the problem. I have a version of git bash installed on my machine already. When I installed the Windows Linux subsystem, it downloaded things and had me create a user. Great. But then every time I ran bash from the start menu (by typing 'bash') it was finding and running git bash, not Windows bash. Once I deleted git bash I was, running 'bash' opened the Windows bash, and commands like 'sudo' and 'apt-get' started working. Rather than delete git bash I probably could have checked if it was in my PATH and removed it, but either way, the problem is solved.
 

Staff online

Members online

Forum statistics

Threads
332,376
Messages
2,255,310
Members
428,699
Latest member
nova