apt-get missing from bash

  • Thread starter Windows Central Question
  • 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?
 

kobenauf

New member
Apr 27, 2016
3
0
0
Visit site
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.
 

Members online

Forum statistics

Threads
323,251
Messages
2,243,519
Members
428,049
Latest member
velocityxs