You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For support with issues related to WSL, please see our GitHub repo:
13
+
14
+
## Search for any existing issues related to your problem
15
+
16
+
For technical issues, use the product repo: https://github.com/Microsoft/wsl/issues
17
+
18
+
For issues related to the contents of this documentation, use the docs repo: https://github.com/MicrosoftDocs/wsl/issues
19
+
20
+
## Submit a bug report
21
+
22
+
For bugs related to WSL functions or features, file an issue in the product repo: https://github.com/Microsoft/wsl/issues
23
+
24
+
## Submit a feature request
25
+
26
+
To request a new feature related to WSL functionality or compatibility, file an issue in the product repo:
27
+
https://github.com/Microsoft/wsl/issues
28
+
29
+
## Contribute to the docs
30
+
31
+
To contribute to the WSL documentation, submit a pull request in the docs repo: https://github.com/MicrosoftDocs/wsl/issues
32
+
33
+
## Terminal or Command Line
34
+
35
+
Lastly, if your issue is related to the Windows Terminal, Windows Console, or the command-line UI, use the Windows terminal repo: https://github.com/microsoft/terminal
36
+
37
+
## Common issues
38
+
14
39
### Bash loses network connectivity once connected to a VPN
15
40
16
41
If after connecting to a VPN on Windows, bash loses network connectivity, try this workaround from within bash. This workaround will allow you to manually override the DNS resolution through `/etc/resolv.conf`.
@@ -27,6 +52,7 @@ If after connecting to a VPN on Windows, bash loses network connectivity, try th
27
52
c. Close the file. <br/>
28
53
29
54
Once you have disconnected the VPN, you will have to revert the changes to `/etc/resolv.conf`. To do this, do:
There are two components of Bash on Ubuntu on Windows that can require updating.
66
+
There are two components of Bash on Ubuntu on Windows that can require updating.
41
67
42
68
1. The Windows Subsystem for Linux
43
69
44
-
Upgrading this portion of Bash on Ubuntu on Windows will enable any new fixes outlines in the [release notes](https://msdn.microsoft.com/en-us/commandline/wsl/release_notes). Ensure that you are subscribed to the Windows Insider Program and that your build is up to date. For finer grain control including resetting your Ubuntu instance check out the [command reference page](https://msdn.microsoft.com/en-us/commandline/wsl/reference).
70
+
Upgrading this portion of Bash on Ubuntu on Windows will enable any new fixes outlines in the [release notes](./release-notes.md). Ensure that you are subscribed to the Windows Insider Program and that your build is up to date. For finer grain control including resetting your Ubuntu instance check out the [command reference page](./reference.md).
45
71
46
-
2. The Ubuntu user binaries
72
+
2. The Ubuntu user binaries
47
73
48
74
Upgrading this portion of Bash on Ubuntu on Windows will install any updates to the Ubuntu user binaries including applications that you have installed via apt-get. To update run the following commands in Bash:
49
75
50
76
1.`apt-get update`
51
77
2.`apt-get upgrade`
52
78
53
79
### Apt-get upgrade errors
80
+
54
81
Some packages use features that we haven't implemented yet. `udev`, for example, isn't supported yet and causes several `apt-get upgrade` errors.
55
82
56
83
To fix issues related to `udev`, follow the following steps:
@@ -62,18 +89,21 @@ To fix issues related to `udev`, follow the following steps:
62
89
exit 101
63
90
```
64
91
65
-
2. Add execute permissions to `/usr/sbin/policy-rc.d`
92
+
2. Add execute permissions to `/usr/sbin/policy-rc.d`:
93
+
66
94
```BASH
67
95
chmod +x /usr/sbin/policy-rc.d
68
96
```
69
97
70
-
3. Run the following commands
98
+
3. Run the following commands:
99
+
71
100
```BASH
72
101
dpkg-divert --local --rename --add /sbin/initctl
73
102
ln -s /bin/true /sbin/initctl
74
103
```
75
104
76
105
### "Error: 0x80040306" on installation
106
+
77
107
This has to do with the fact that we do not support legacy console.
78
108
To turn off legacy console:
79
109
@@ -82,50 +112,63 @@ To turn off legacy console:
82
112
1. Click OK
83
113
84
114
### "Error: 0x80040154" after Windows update
85
-
The Windows Subsystem for Linux feature may be disabled during a Windows update. If this happens the Windows feature must be re-enabled. Instructions for enabling the Windows Subsystem for Linux can be found in the [Installation Guide](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide#enable-the-windows-subsystem-for-linux-feature-gui).
115
+
116
+
The Windows Subsystem for Linux feature may be disabled during a Windows update. If this happens the Windows feature must be re-enabled. Instructions for enabling the Windows Subsystem for Linux can be found in the [Installation Guide](./install-win10.md).
86
117
87
118
### Changing the display language
119
+
88
120
WSL install will try to automatically change the Ubuntu locale to match the locale of your Windows install. If you do not want this behavior you can run this command to change the Ubuntu locale after install completes. You will have to relaunch bash.exe for this change to take effect.
89
121
90
122
The below example changes to locale to en-US:
123
+
91
124
```BASH
92
125
sudo update-locale LANG=en_US.UTF8
93
126
```
94
127
95
128
### Installation issues after Windows system restore
96
-
1. Delete the `%windir%\System32\Tasks\Microsoft\Windows\Windows Subsystem for Linux` folder. <br/>
129
+
130
+
1. Delete the `%windir%\System32\Tasks\Microsoft\Windows\Windows Subsystem for Linux` folder. <br/>
97
131
**Note: Do not do this if your optional feature is fully installed and working.**
98
-
2.Enable the WSL optional feature (if not already)
99
-
3.Reboot
100
-
4.lxrun /uninstall /full
101
-
5.Install bash
132
+
2.Enable the WSL optional feature (if not already)
133
+
3.Reboot
134
+
4.lxrun /uninstall /full
135
+
5.Install bash
102
136
103
137
### No internet access in WSL
138
+
104
139
Some users have reported issues with specific firewall applications blocking internet access in WSL. The firewalls reported are:
105
140
106
141
1. Kaspersky
107
-
1. AVG
108
-
1. Avast
142
+
2. AVG
143
+
3. Avast
109
144
110
145
In some cases turning off the firewall allows for access. In some cases simply having the firewall installed looks to block access.
Administrator privileges in Windows are required to run ping in WSL. To run ping, run Bash on Ubuntu on Windows as an administrator, or run bash.exe from a CMD/PowerShell prompt with administrator privileges.
149
+
For [Windows Anniversary Update, version 1607](./release-notes.md#build-14388-to-windows-10-anniversary-update),
150
+
**administrator privileges** in Windows are required to run ping in WSL. To run ping, run Bash on Ubuntu on Windows as an administrator, or run bash.exe from a CMD/PowerShell prompt with administrator privileges.
For later versions of Windows, [Build 14926+](./release-notes.md#build-14926), administrator privileges are no longer required.
119
153
120
154
### Bash is hung
121
-
If while working with bash, you find that bash is hung (or deadlocked) and not responding to inputs, help us diagnose the issue by collecting and reporting a memory dump. Note that these steps will crash your system. Do not do this if you are not comfortable with that or save your work prior to doing this. <br/>
122
-
To collect a memory dump:
155
+
156
+
If while working with bash, you find that bash is hung (or deadlocked) and not responding to inputs, help us diagnose the issue by collecting and reporting a memory dump. Note that these steps will crash your system. Do not do this if you are not comfortable with that or save your work prior to doing this.
157
+
158
+
To collect a memory dump
159
+
123
160
1. Change the memory dump type to "complete memory dump". While changing the dump type, take a note of your current type.
161
+
124
162
2. Use the [steps](https://techcommunity.microsoft.com/t5/Core-Infrastructure-and-Security/How-to-Force-a-Diagnostic-Memory-Dump-When-a-Computer-Hangs/ba-p/257809) to configure crash using keyboard control.
163
+
125
164
3. Repro the hang or deadlock.
165
+
126
166
4. Crash the system using the key sequence from (2).
167
+
127
168
5. The system will crash and collect the memory dump.
169
+
128
170
6. Once the system reboots, report the memory.dmp to [email protected]. The default location of the dump file is %SystemRoot%\memory.dmp or C:\Windows\memory.dmp if C: is the system drive. In the email, note that the dump is for the WSL or Bash on Windows team.
171
+
129
172
7. Restore the memory dump type to the original setting.
130
173
131
174
### Check your build number
@@ -134,35 +177,45 @@ To find your PC's architecture and Windows build number, open
134
177
**Settings** > **System** > **About**
135
178
136
179
Look for the **OS Build** and **System Type** fields.
137
-

138
-
180
+

139
181
140
182
To find your Windows Server build number, run the following in PowerShell:
This error is related to being in a bad install state. Please complete the following steps to try and fix this issue:
190
244
191
-
* If you are running the enable WSL feature command from PowerShell, try using the GUI instead by opening the start menu, searching for 'Turn Windows features on or off' and then in the list select 'Windows Subsystem for Linux' which will install the optional component.
192
-
* Update your version of Windows by going to Settings, Updates, and clicking 'Check for Updates'
193
-
* If both of those fail and you need to access WSL please consider upgrading in place by reinstalling Windows 10 using installation media and selecting 'Keep Everything' to ensure your apps and files are preserved. You can find instructions on how to do so at the [Reinstall Windows 10 page](https://support.microsoft.com/en-us/help/4000735/windows-10-reinstall).
245
+
- If you are running the enable WSL feature command from PowerShell, try using the GUI instead by opening the start menu, searching for 'Turn Windows features on or off' and then in the list select 'Windows Subsystem for Linux' which will install the optional component.
246
+
247
+
- Update your version of Windows by going to Settings, Updates, and clicking 'Check for Updates'
248
+
249
+
- If both of those fail and you need to access WSL please consider upgrading in place by reinstalling Windows 10 using installation media and selecting 'Keep Everything' to ensure your apps and files are preserved. You can find instructions on how to do so at the [Reinstall Windows 10 page](https://support.microsoft.com/help/4000735/windows-10-reinstall).
Copy file name to clipboardExpand all lines: WSL/user-support.md
+6-16Lines changed: 6 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,25 +29,15 @@ You will be asked to enter your current password, then asked to enter your new p
29
29
30
30
### Forgot your password
31
31
32
-
If you forgot the password for your Linux distribution, try this:
32
+
If you forgot the password for your Linux distribution:
33
33
34
-
For Ubuntu:
35
-
1. Open PowerShell and use it to change the default user name of your Ubuntu distribution to root with: `ubuntu config --default-user root`
34
+
1. Open PowerShell and enter the root of your default WSL distribution using the command: `wsl -u root`
36
35
37
-
2. Open your distribution (Ubuntu) and you should see that the prompt now lists `root@computername` rather than the user name you entered. Enter the command: `passwd <username>` (replacing the username you created for your account and forgot the password for).
36
+
-- If you need to update the forgotten password on a distribution that is not your default, use the command: `wsl -d Debian -u root`, replacing `Debian` with the name of your targeted distribution.
38
37
39
-
3. You will be prompted to enter a new UNIX password and then confirm that password. Once you're told that the password has updated successfully, close the Linux distribution (Ubuntu).
38
+
2. Once your WSL distribution has been opened at the root level inside PowerShell, you can use this command to update your password: `passwd`
40
39
41
-
4. Open PowerShell and use it to change the default user name of your Ubuntu distribution back to your username with: `ubuntu config --default-user <your username>`
42
-
43
-
5. Now re-open your Ubuntu distribution and you should see your username displayed as the prompt, rather than `root`. Now you can confirm that your password was correctly updated.
44
-
45
-
For other Linux distributions, follow the same instructions, but in Powershell, change the command to align with the correct distribution name:
3. You will be prompted to enter a new UNIX password and then confirm that password. Once you're told that the password has updated successfully, close WSL inside of PowerShell using the command: `exit`
51
41
52
42
> [!NOTE]
53
-
> If you are running an early version of Windows operating system, like 1703 (Creators Update) or 1709 (Fall Creators Update), see the [archived version of this user account update doc](../user-support-archived.md).
43
+
> If you are running an early version of Windows operating system, like 1703 (Creators Update) or 1709 (Fall Creators Update), see the [archived version of this user account update doc](./user-support-archived.md).
0 commit comments