Windows 10 上的 Bash 不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38810746/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 15:00:39  来源:igfitidea点击:

Bash on Windows 10 is not working

bashwindows-10updates

提问by saai

I am planning to compile and run code in a linux environment. Before moving to a linux environment I want to try it out, virtual box and dual boot will take my memory. So, after updating my windows 10 anniversary updates, I was able to install bash (ubuntu) natively to my windows 10 through windows features. After installing bash when I try to run bash it's popping and closing a windows immediately. how can I solve this. I tried this with two pc, no luck. How can I solve this issue. Which registry file should I change ?

我打算在 linux 环境中编译和运行代码。在转到 linux 环境之前,我想尝试一下,虚拟机和双启动会占用我的内存。因此,在更新我的 Windows 10 周年更新后,我能够通过 Windows 功能将 bash (ubuntu) 本地安装到我的 Windows 10。安装 bash 后,当我尝试运行 bash 时,它会立即弹出并关闭窗口。我该如何解决这个问题。我用两台电脑试过这个,不走运。我该如何解决这个问题。我应该更改哪个注册表文件?

采纳答案by Saahithyan Vigneswaran

Turn your windows to developer mode, go to settings -> search for developer, then change to developer mode. Restart your pc. It should work now

把你的windows转到开发者模式,去设置->搜索开发者,然后切换到开发者模式。重启你的电脑。现在应该可以用了