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 related to the Windows Subsystem for Linux:
13
+
14
+
-**Windows Subsystem for Linux user documentation**
15
+
16
+
-- If you are experiencing a problem, please search the **Issues** section of the WSL MicrosoftDocs github repo: https://github.com/MicrosoftDocs/WSL/issues
17
+
-- If you cannot find an existing issue that addresses your problem, please select **New issue** and describe your issue in as much detail as possible. Consider including the version number of Windows that you are currently running. This can be found by entering `Run` in the start window, then entering `winver` and selecting **OK**.
18
+
19
+
-**Windows Subsystem for Linux feature request**
20
+
21
+
-- If you would like to request a new feature, please visit the **Issues** section of the WSL Microsoft github repo: https://github.com/microsoft/WSL
22
+
-- Please search the existing **Issues** to see whether there is a similar request that has already been addressed. If not, please select the **New issue** and explain your request in detail.
23
+
24
+
-**Windows Terminal, Console and Command-Line issues**
25
+
26
+
-- For issues related, to Windows Terminal or Console host, please visit the **Issues** section of the Windows Terminal repo: https://github.com/microsoft/terminal
27
+
28
+
## Common issues
29
+
14
30
### Bash loses network connectivity once connected to a VPN
15
31
16
32
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 +43,7 @@ If after connecting to a VPN on Windows, bash loses network connectivity, try th
27
43
c. Close the file. <br/>
28
44
29
45
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.
57
+
There are two components of Bash on Ubuntu on Windows that can require updating.
41
58
42
59
1. The Windows Subsystem for Linux
43
60
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).
61
+
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
62
46
-
2. The Ubuntu user binaries
63
+
2. The Ubuntu user binaries
47
64
48
65
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
66
50
67
1.`apt-get update`
51
68
2.`apt-get upgrade`
52
69
53
70
### Apt-get upgrade errors
71
+
54
72
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
73
56
74
To fix issues related to `udev`, follow the following steps:
@@ -62,18 +80,21 @@ To fix issues related to `udev`, follow the following steps:
62
80
exit 101
63
81
```
64
82
65
-
2. Add execute permissions to `/usr/sbin/policy-rc.d`
83
+
2. Add execute permissions to `/usr/sbin/policy-rc.d`:
84
+
66
85
```BASH
67
86
chmod +x /usr/sbin/policy-rc.d
68
87
```
69
88
70
-
3. Run the following commands
89
+
3. Run the following commands:
90
+
71
91
```BASH
72
92
dpkg-divert --local --rename --add /sbin/initctl
73
93
ln -s /bin/true /sbin/initctl
74
94
```
75
95
76
96
### "Error: 0x80040306" on installation
97
+
77
98
This has to do with the fact that we do not support legacy console.
78
99
To turn off legacy console:
79
100
@@ -82,50 +103,63 @@ To turn off legacy console:
82
103
1. Click OK
83
104
84
105
### "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).
106
+
107
+
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
108
87
109
### Changing the display language
110
+
88
111
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
112
90
113
The below example changes to locale to en-US:
114
+
91
115
```BASH
92
116
sudo update-locale LANG=en_US.UTF8
93
117
```
94
118
95
119
### Installation issues after Windows system restore
96
-
1. Delete the `%windir%\System32\Tasks\Microsoft\Windows\Windows Subsystem for Linux` folder. <br/>
120
+
121
+
1. Delete the `%windir%\System32\Tasks\Microsoft\Windows\Windows Subsystem for Linux` folder. <br/>
97
122
**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
123
+
2.Enable the WSL optional feature (if not already)
124
+
3.Reboot
125
+
4.lxrun /uninstall /full
126
+
5.Install bash
102
127
103
128
### No internet access in WSL
129
+
104
130
Some users have reported issues with specific firewall applications blocking internet access in WSL. The firewalls reported are:
105
131
106
132
1. Kaspersky
107
-
1. AVG
108
-
1. Avast
133
+
2. AVG
134
+
3. Avast
109
135
110
136
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.
140
+
For [Windows Anniversary Update, version 1607](./release-notes.md#build-14388-to-windows-10-anniversary-update),
141
+
**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
144
120
145
### 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:
146
+
147
+
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.
148
+
149
+
To collect a memory dump
150
+
123
151
1. Change the memory dump type to "complete memory dump". While changing the dump type, take a note of your current type.
152
+
124
153
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.
154
+
125
155
3. Repro the hang or deadlock.
156
+
126
157
4. Crash the system using the key sequence from (2).
158
+
127
159
5. The system will crash and collect the memory dump.
160
+
128
161
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.
162
+
129
163
7. Restore the memory dump type to the original setting.
130
164
131
165
### Check your build number
@@ -134,35 +168,45 @@ To find your PC's architecture and Windows build number, open
134
168
**Settings** > **System** > **About**
135
169
136
170
Look for the **OS Build** and **System Type** fields.
137
-

138
-
171
+

139
172
140
173
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
235
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).
236
+
- 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.
237
+
238
+
- Update your version of Windows by going to Settings, Updates, and clicking 'Check for Updates'
239
+
240
+
- 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).
0 commit comments