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
Copy file name to clipboardExpand all lines: WSL/troubleshooting.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,20 +84,20 @@ To fix issues related to `udev`, follow the following steps:
84
84
85
85
1. Write the following to `/usr/sbin/policy-rc.d` and save your changes.
86
86
87
-
```BASH
87
+
```bash
88
88
#!/bin/sh
89
89
exit 101
90
90
```
91
91
92
92
2. Add execute permissions to `/usr/sbin/policy-rc.d`:
93
93
94
-
```BASH
94
+
```bash
95
95
chmod +x /usr/sbin/policy-rc.d
96
96
```
97
97
98
98
3. Run the following commands:
99
99
100
-
```BASH
100
+
```bash
101
101
dpkg-divert --local --rename --add /sbin/initctl
102
102
ln -s /bin/true /sbin/initctl
103
103
```
@@ -121,7 +121,7 @@ WSL install will try to automatically change the Ubuntu locale to match the loca
121
121
122
122
The below example changes to locale to en-US:
123
123
124
-
```BASH
124
+
```bash
125
125
sudo update-locale LANG=en_US.UTF8
126
126
```
127
127
@@ -199,7 +199,7 @@ Trying to connect your SSH server is failed with the following error: "Connectio
199
199
200
200
1. Make sure your OpenSSH Server is running:
201
201
202
-
```BASH
202
+
```bash
203
203
sudo service ssh status
204
204
```
205
205
@@ -208,7 +208,7 @@ Trying to connect your SSH server is failed with the following error: "Connectio
208
208
209
209
2. Stop the sshd service and start sshd in debug mode:
210
210
211
-
```BASH
211
+
```bash
212
212
sudo service ssh stop
213
213
sudo /usr/sbin/sshd -d
214
214
```
@@ -267,4 +267,4 @@ enabled = true
267
267
options = metadata,uid=1000,gid=1000,umask=0022
268
268
```
269
269
270
-
Please note that adding this command will include metadata and modify the file permissions on the Windows files seen from WSL. Please see the [File System Permissions](./file-permissions.md) for more information.
270
+
Please note that adding this command will include metadata and modify the file permissions on the Windows files seen from WSL. Please see the [File System Permissions](./file-permissions.md) for more information.
0 commit comments