WSL: Cannot install bash. Hangs at "Extracting Filesystem"
I am attempting to install bash for windows using the standard process:
- enable developer mode
- go to “turn windows features on and off” and enable linux subsystem
- reboot
- execute
bashin a command prompt run as Administrator.
At this point, I get through downloading from the store to Extracting filesystem, this will take a few minutes, but then the installer hangs and never continues.
I have looked in C:\Users[username]\AppData\Local\lxss and the files have downloaded and extracted, and the tarball has been removed, but the command never terminates and bash never appears in the start menu. If I open a new command prompt and execute bash, I get no output, and the command prompt doesn’t respond to ^C.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 40 (8 by maintainers)
I just noticed that there’s a problem with the scrolling in the Bash environment.
Basically, it doesn’t hang when
Extracting filesystemall you need to do is maximize the window. This even occured once when using apt-get and I thought it got stuck. But simply maximize the window and it shows everything working fine.Hope that helps 😃
Nope it is definitely not the case as even when the install process is hang with extracting filesystem you can already using a second cmd window to open a bash (dropped in as root) and doing apt-get update.
I resolved my issue thusly:
On running bash and running “
ps auxf”, I saw that “apt update” was running. I’m behind an NTLM based proxy and this was trying to talk out directly to the internet. Upon killing the “apt update” process (kill -9 <PID>), the installer continued and asked for the new user.Once up and running, I had CNTLM installed under Windows, so I created
/etc/apt/apt.conffile and added the following lines:I also edited
/etc/environmentand added the following lines:Close bash and reopen it, and then I could run “
sudo apt-get update” and “sudo apt-get dist-upgrade” to manually finish the update that the installer couldn’t do.@aseering I clearly said that the reason why firewall should not be the reason is because on the second cmd window apt update everything works. Please don’t just pick up the “definitely …” sentence alone as I believe it is a 100% fact backed conclusion. “something is not implemented reliably” is just a neutral sentence if this cannot be accepted I don’t know what to say … what’s the problem for a beta thing not working reliably? this is normal, and everyone should know it. Don’t take everything the negative way.
I was trying to find a log to send to the forum but cannot find any. maybe thinking of a logging utility for user to provide more precise info?
To update the scenario:
I hope I am crystal clear this time. This might not be issue for other people so please let me know what other information you might need that could cause the issue I described. By the way I have been using ubuntu since its born and I will immediately spot two apt update cannot run at the same time because it will tell you clearly so with text on the screen.
Avast you have to uninstall according to the other people.
@yanghao There is no need to be disrespectful, I’m simply trying to help you understand what’s likely happening.
@TheTomahawk - The issue you had seems to be a duplicate of #1570?
I had the same hanging issue. But when I opened the window to its full size, I saw it was waiting for me to input a username
@yanghao – I think @benhillis did read through your post and answer to the best of his knowledge. Based on my own knowledge, and having read his post, I agree with his assessment. Given that he and a number of other people on this forum who all know their stuff are telling you that they understand what you are saying and that he is correct, I would encourage you to think a bit about how that might be the case.
We could all be wrong. But if we’re wrong, we’re probably all wrong for the same reason, and that reason is probably technical because technical stuff is the only common thread between this particular set of folks on this forum. So if we’re wrong, you should figure out what technical detail we’re missing and point it out.
Your own posts are, if I may be be frank, relatively low information content and in some ways not too productive. To be specific: You make broad statements (“it looks very clear to me that something is not implemented so reliably”, “Nope it is definitely not the case”, etc) that are also negative. There’s nothing inherently wrong with that, if they’re true and if they serve a purpose. But for the most part you don’t then back them up with information (data, examples, or other supporting or explanatory evidence). As a result, you’re telling engineers who care about their work that these very broad things are true about their work, but your statements are so general that they can’t go figure out why they are true. So they can’t really do anything about it. And because they’re negative, the impact is that they feel like something is wrong and they can’t do anything about it. Which sucks for them and which doesn’t help you either.
If you want to add information content to your posts, the general approach is to just think a little harder and elaborate a little more with your posts. Specifically, you might consider some of the following:
@benhillis No offence … I removed the disrespectful word. but looks like you did not even read through my posting of what is going wrong. All information is in my first post and I cannot agree with your point.
@aychang95 Nope, it is not the same case, I disabled quick edit mode of the cmd window, and no matter how I maximize/minimize the window the text does not come out for setting up a user. It only shows after a second lxrun /setdefaultuser.
@zadjii-msft Sorry for the late reply, but I do not remember if I was in select mode specifically. I may have possibly clicked on the cmd. I remember just seeing it hang and then coming to this thread and reading about maximizing the cmd to fix it. However, the moment I maximized the cmd, the installation was done. So I am assuming everything after “Extracting Filesystem…” was running, just not showing up (due to select I assume). I guess this would mean that select mode only prevents text output to the cmd, but continues to extract/install.
I could try to uninstall and reinstall bash to replicate the problem?
@yanghao If you were able to run bash successfully in a second cmd, I am very sure your problem was with the cmd just not displaying the text that the extraction was complete. @Revenexant solution above would have shown you that everything was extracted successfully. I understand the unfortunate design of this unintended bug; however, to blow a problem like this out of proportion while introducing contrived issues with little backing in a disrespectful manner will only impede on how these microsoft employees will do their work to help us out.
@yanghao The hang you are experiencing is likely related to your firewall blocking network traffic.
@Revenexant @aychang95 is there any chance you clicked on the window at any point during the installation, as if to select text? An often overlooked feature of conhost is that it pauses output while you have text selected. You can tell that you’re in this select mode, because “Select” will get prepended to the title of the window. Maximizing the window would dismiss this mode, as well as hitting escape while in select mode.
Yes uninstalling the Avast worked. Thank you all 👍