首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试在Windows上使用bash,但未收到已安装的发行版消息

尝试在Windows上使用bash,但未收到已安装的发行版消息
EN

Stack Overflow用户
提问于 2017-06-29 15:52:36
回答 24查看 158.5K关注 0票数 131

我试图在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操作系统下的代码和文件编辑,但是他们没有收到没有安装发行版的消息。

有什么帮助吗?

EN

回答 24

Stack Overflow用户

回答已采纳

发布于 2017-07-02 02:09:28

当Windows打开时,没有分区可供选择,然后我找到了这个命令lxrun /install,并为我工作。

您将得到这样的输出:

代码语言:javascript
复制
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
票数 173
EN

Stack Overflow用户

发布于 2017-07-01 03:38:00

在尝试卸载和重新安装之后,我得到了一个类似的bug。

对于我来说,我必须以管理员身份打开cmd提示符并运行lxrun /install

票数 26
EN

Stack Overflow用户

发布于 2018-08-20 14:04:28

我最近重新启动的时候就知道了。如果我等5分钟,问题就自己解决了!

票数 25
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44829878

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档