-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux prompt does not appear on WSL #3279
Comments
The distro-specific launcher binaries do not launch in your current Windows directory. If you want that behavior use wsl.exe. |
Sorry I misunderstood your question. What shell are you running? echo $SHELL ps -auxf |
Ben one way to reproduce this behaviour is start The reason there is no WSL |
Did you try wsltty? |
|
Thanks for trying it out! So do you have any idea on how to have .bashrc getting run normally? And if not, does anyone know a way of uninstalling everything related to WSL other than just uninstalling the Linux distribution apps & disable the WSL option in Windows parameters? (I'm pretty sure this can be fixed with a fresh installation since it used to work just fine on my other Windows user) |
Took a look at this and it looks like the issue to me is that git bash uses pipes for stdin / stdout / stderr when launching processes. After launching wsl.exe take a look at /proc/self/fd and you'll see file descriptors 0 1 and 2 are all pipes. I suspect this is causing /bin/bash to operate in "I'm not running in a console, better not print my prompt" mode. |
Yeah "there's your problem" alright. I think we're possibly just revisiting (poorly titled) #352.
and...
and just...
That doesn't mean WSL's reimagination of |
I'd like to add to the conversation, I just enabled WSL today and out of the box, the ubuntu bash distribution is not printing the prompt. There is a default
|
@TheIncorrigible1 Which Windows version did you use? Does wsltty, wslbridge, or any SSH session (e.g. with putty or openssh in Windows) shows the prompt text? |
@Biswa96 I'm unfamiliar with any of those. Just using the Windows conhost, launching wsl/ubuntu/bash through cmd. All three executables do not show prompt text. I'm on the latest non-insiders Windows 10 build (1803). |
I'm facing the same issue where ubuntu started looking like it was hanging (no more prompt and capability to type commands in it) since yesterday. I tried running Edit: Unchecking WSL in |
Yes the mode of failure is highly problematic. I thought it was hung too -- filed the problem under "scenario doesn't work" -- and moved on for the better part of a year before this issue was submitted in 2018. The problem has gotten a bit more acute lately because WSL2 breaks If the "MSYS2 uses pipes" problem can and should be fixed in MSYS2, then they could probably use some guidance as to how they could or should go about doing that. I haven't convinced myself that's exclusively the case though. If you do a Windows brand |
I took a more serious dive on this over the weekend. It's both. Which is most unfortunate, because the WSL team can call this a On the On the |
[re strikeouts] Dove more and the Windows branded OpenSSH client has the same behavior (no |
I found the issue for me. My computer name is an emoji which breaks the bash prompt. |
I was able to resolve my issue. I suggest that you run the below command and review the listing: Look at my output below: The default should have been Ubuntu, so I used the following command to fix my issue: C:\Users\Allen>wslconfig /list /all Hope it helps some of you if it is related to Docker messing up your setup. |
Yes, the exact same thing happened to me, I was on the WSL platform and everything was working well until I installed Docker. Obviously it's a new feature and there are so many bugs. |
Wrapping this one: The OP as presented is in a largely unrecoverable need-repro state with no thumbs-up. Whatever was going on there I strongly suspect will be okay if WSL (1 or 2) is started with That docker-desktop ends up the default distro has a de-facto landing zone #6024, and is unrelated to the OP. Computer names with an emoji is LZ #2442 for lack, also unrelated. If there are other scenarios where the |
Hello,
I am using the Windows Subsystem for Linux on Windows 10. In a nutshell, my problem is that the usual Linux prompt "username/path>" does not show up on any of Ubuntu or Debian, whether those are launched from the Windows command line (as shown below) or from the Windows applications.
Some background history: for no obvious reason, my previous Windows User ended up corrupted. All my files were accessible but a new default session would show up after every reboot. I went through all tests and solutions suggested online, none worked, so I ended up creating a new Windows User (that's the "Vijeta" in the screenshot above).
Everything was fixed until I realized that the WSL and my (previously working) Ubuntu application were not installed properly on this User. I thought it was due to the fact that I did not copy some files from AppData from my previous Windows user to the new one, so I tried fixing the problem manually to get all my previous settings, installed packages and so on... But it failed. I deleted all the newly copied files, but that's it, there was one folder that I copied and then deleted, everything should be back to normal.
Then, I was getting something similar to what you can see on the screenshot. From then on, I've been installing and uninstalling Ubuntu and trying to install Debian instead. I tried to uninstall all Linux distributions I had, disable WSL, reboot, enable WSL, reboot, reinstall Ubuntu, but nothing changed.
-> Is there a way of directly fixing this issue (by modifying something in the .bashrc file, ...) ?
-> If not, is there a way of really uninstalling everything related to WSL and getting a fresh start?
The text was updated successfully, but these errors were encountered: