当前位置: 首页 > 知识库问答 >
问题:

尝试在Windows上使用bash,但收到“未安装分发”消息

徐阳炎
2023-03-14

我正试图在Windows10上使用bash,但在尝试运行bash时,我收到了以下消息:

我遵循了本指南安装指南中的说明,也观看了Scott Hanselman关于Windows 10上Linux的Windows子系统编辑代码和文件的视频,但他们没有得到没有安装发行版的消息。

有人帮忙吗?

共有1个答案

甄志
2023-03-14

当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
 类似资料:
  • 我想安装Rails5/Postgres在Bash在Ubuntu在Windows上,也能够访问Postgres数据库通过PgAdmin为Windows。 基本上,我希望我的Windows安装了PgAdmin,以便与我的Bash在Windows Postgres DB上的Ubuntu进行通信

  • 我正在使用启用了 Bash 构建的 Windows 10 预览体验成员。显示了其乌班图 14.04 LTS。所以,我想知道我终于可以在Windows 10上安装RoR而不使用其他安装程序。因为他们在视窗上说它的乌班图。 我按照Chris Oliver的GoRails指南在Ubuntu 14.04 Win10上设置RoR。我使用RVM尝试了这两种方法 我还要求克里斯在他的网站上为此写一个指南,他认为

  • 我在windows 10的ubuntu上安装了bash上的docker: 但是当我尝试使用它时: docker-v 它给了我以下错误: 当我尝试重新安装它时,我会收到这条消息: docker已经是最新版本了 更新: 看来,安装docker的先决条件之一这样:https://docs.docker.com/engine/installation/linux/ubuntulinux/工作在我的专用ub

  • (venv)C:\ Users \ Jay MOH \ PycharmProjects \ Elisanta -Command“C:\ Users \ Jaymoh \ PycharmProjects \ Elisanta \ venv \ Scripts \ python . exe-u-C”导入setuptools,tokenizefile = ' C:\ Users \ Jay MOH \

  • 完整错误消息:找不到有效的gem“bundler”( 我无法找到足够的步骤来解决这个问题在Windows上,有人可以帮忙吗?

  • 我下载了Python 3.6.1,它预装了Pip。我写了这个命令来安装Numpy 我得到了这个作为输出: 收集Numpy无法获取URLhttps://pypi.python.org/simple/numpy/:确认ssl证书时出现问题:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl. c: 749)-跳过无法找到满足要求的版本Numpy(来自版本:)麻木 我如