Windows에서 bash를 사용하려고하는데 설치된 배포 메시지가 없습니다.
내가 사용하려고 bash는 에 윈도우 10 ,하지만 난 실행 강타에 노력이 메시지를 받고 있어요 :
Linux 용 Windows 하위 시스템에는 설치된 배포가 없습니다. Windows Store를 방문하여 배포를 설치할 수 있습니다. https://aka.ms/wslstore 계속하려면 아무 키나 누르십시오 ...
Windows Store 앱 을 여는 URL로 이동하면 Linux 배포판이 표시되지 않습니다 .
내 Windows 버전은 다음과 같습니다 (화면의 오른쪽 하단 모서리에 있음).
Windows 10 Enterprise Insider Preview. 평가 사본 빌드 16215.rs_prerelease.170603-1840
이 가이드 설치 가이드 의 지침을 따르고 Scott Hanselman의 Windows 10 Linux 용 Windows 하위 시스템에서 코드 및 파일 편집 비디오를보고 있었지만 배포판이 설치되지 않았다는 메시지를받지 못했습니다.
도움이 필요하십니까?
Windows Store가 열렸을 때 선택할 배포판이 없었고이 명령을 찾아서 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
제거 및 재설치를 시도한 후에도 유사한 버그가 나타납니다.
나를 위해 관리자로 cmd 프롬프트를 열고 실행해야했습니다. lxrun /install
최근에 재부팅했을 때 나타납니다. 5 분 정도 기다리면 문제가 저절로 해결됩니다!
명령에 제공된 링크가 작동하지 않는 것 같습니다. 다음은 Ubuntu 용 Microsoft Store에 대한 실제 링크입니다.
https://www.microsoft.com/en-nz/store/p/ubuntu/9nblggh4msv6?rtc=1
Windows 저장소를 사용하여 배포를 설치 한 후이 오류가 발생하고 WSL이 이전에 작동했던 경우 LxssManager 서비스가 실행 중인지 확인해야 할 수 있습니다. Windows 업데이트 또는 재부팅 후 자주 중지되기 때문입니다.
services.msc로 이동하여 검색하여 LxssManager
시작하십시오. 이미 실행 중이면 다시 시작하십시오.
https://aka.ms/wslstore 이 링크 로 이동하여 Windows에서 우분투를 다운로드해야합니다. 그 후 Windows에서 bash를 사용할 수 있습니다.
lxrun /install
Windows 10 Professional 버전 1803 빌드 17134.165 용 관리자 명령 프롬프트에서 작동합니다.
이렇게하면 기본적으로 GNU / Linux가 설치되지만 다음 중에서 선택할 수있는 옵션이 있습니다.
- 우분투
- openSUSE Leap 42
- SUSE Linux Enterprise
- 데비안 GNU / 리눅스
- 칼리 리눅스
If the given link (https://aka.ms/wslstore) works, it openes the windows store for me with an error saying something is wrong on their side and to try again later.
It's actually easier to solve this problem that other solutions listed here. If you run wslconfig /l
and if the output is:
Windows Subsystem for Linux Distributions: Ubuntu (Default)
Just run wslconfig /s Ubuntu
to set Ubuntu as default again. It should start working now.
Edit:
I've also found that if this problem occurs on a fresh boot, then you just wait for a few minutes (10 minutes max) and this error automatically disappears.
Edit 2: I've also found that this error is sometimes also due to the corresponding service not running. Run CMD as administrator and run
net start LxssManager
I had this same issue. But when you go to the windows store you can search for ubuntu and then install the ubuntu app and it works. I think most of the tutorials on the net are from the beta version and have afterwards never been updated.
https://insights.ubuntu.com/2017/07/11/windows-10-loves-ubuntu-loveislove/
Note: This is also old. You do not need to be on the insider builds. I'm not and it worked.
Access to Microsoft Store is blocked by my company. For me following worked in PowerShell (admin) -
lxrun /install
Go to cmd, and then run the following command: lxrun /install
Typing lxrun /install
in elevated command prompt works....
like beginner_ said in his answer you need to go to the store and look for the distros you want to install. Please see the following link to understand what has changed and what you can excpect or what distros you can look for(the list is outdated so just try to find an updated list or just try your luck).
I am running on my machine without the developer mode Ubuntu, OpenSuse and Kali.
If you have any problems with running lxrun /install
(for example on ltsb Windows version) try manual mode.
First, go to the folder with downloaded .appx
file and run following commands (change filename if needed):
Rename-Item ~/Ubuntu.appx ~/Ubuntu.zip
Expand-Archive ~/Ubuntu.zip ~/Ubuntu
After finishing cd into new folder and run ubuntu.exe
file. That's it.
For running bash on windows ubuntu is required to be installed.
As you've already added bash from programs and features, now you need to install Ubuntu. Contrary to what is seen in most of the installation guides on web, it does not gets installed by running 'bash.exe'.
You can simply go to Microsoft store in search for 'Bash' or 'Ubuntu'and install Ubuntu 18 LTS from there.
After installation you'll be able to use the terminal and all its commands.
'program story' 카테고리의 다른 글
SQL Server 2005 데이터베이스에서 가장 많은 공간을 차지하는 테이블을 어떻게 알 수 있습니까? (0) | 2020.09.23 |
---|---|
다른 gradle buildType에 대해 다른 Android 앱 아이콘을 제공하는 방법은 무엇입니까? (0) | 2020.09.23 |
두 요소가 동일한 지 테스트 (0) | 2020.09.23 |
POST NSURLRequest에 데이터 추가 (0) | 2020.09.23 |
목록에서 항목을 제거하는 지능적인 방법 (0) | 2020.09.23 |