我试图在Windows 10上使用bash,但当试图运行bash时,我会收到以下消息:
Windows Linux子系统没有安装发行版。可以通过访问Windows安装发行版:https://aka.ms/wslstore按任意键继续.
当我访问打开Windows 应用程序的url时,那里没有任何Linux发行版的迹象。
我的windows版本是(就像在屏幕的右下角):
Windows 10企业内部预览。评价copy.Build 16215.rs_preselease.170603-1840
我遵循本指南安装指南中的说明,也在观看Scott的视频Windows 10环境下Linux操作系统下的代码和文件编辑,但是他们没有收到没有安装发行版的消息。
有什么帮助吗?
发布于 2017-07-02 02:09:28
当Windows打开时,没有分区可供选择,然后我找到了这个命令lxrun /install,并为我工作。
您将得到这样的输出:
C:\WINDOWS\system32>lxrun /install
Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
This will install Ubuntu on Windows, distributed by Canonical and licensed under its terms available here:
https://aka.ms/uowterms
Type "y" to continue: y
Downloading from the Microsoft Store... 100%
Extracting filesystem, this will take a few minutes...
Would you like to set the Ubuntu locale to match the Windows locale (en-FI)?
The default locale is en_US.
Type "y" to continue: y
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: <you type your login here>
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
Documentation is available at: https://aka.ms/wsldocs发布于 2017-07-01 03:38:00
在尝试卸载和重新安装之后,我得到了一个类似的bug。
对于我来说,我必须以管理员身份打开cmd提示符并运行lxrun /install。
发布于 2018-08-20 14:04:28
我最近重新启动的时候就知道了。如果我等5分钟,问题就自己解决了!
https://stackoverflow.com/questions/44829878
复制相似问题