Skip to content

Commit 309bb4e

Browse files
committed
update FAQ
1 parent 6f1035b commit 309bb4e

File tree

1 file changed

+95
-1
lines changed

1 file changed

+95
-1
lines changed

FAQ.md

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,98 @@ Package 'XXX' not found
5454
## 4. 遇到任何 ROS 问题,可以尝试:
5555

5656
1. 关闭所有 Terminal,重新打开新的 Terminal
57-
2. 删除 build install log 重新编译
57+
2. 删除 build install log 重新编译
58+
59+
## 5. 网络配置
60+
```sh
61+
unitree@ubuntu:~$ sudo ifconfig wlan0 up
62+
# 报错 SIOCSIFFLAGS: Operation not possible due to RF-kill
63+
```
64+
65+
解决:
66+
```sh
67+
# 查看
68+
unitree@ubuntu:~$ rfkill list
69+
# 0: phy0: Wireless LAN
70+
# Soft blocked: yes
71+
# Hard blocked: no
72+
73+
unitree@ubuntu:~$ sudo rfkill unblock wifi
74+
75+
# 再查看
76+
unitree@ubuntu:~$ rfkill list
77+
# 0: phy0: Wireless LAN
78+
# Soft blocked: no
79+
# Hard blocked: no
80+
81+
# 重新运行不再报错
82+
unitree@ubuntu:~$ sudo ifconfig wlan0 up
83+
```
84+
85+
## 6. SSH 成功 但 VScode 连接远程失败
86+
首先,Download Server 需联网,确认本地网络连接正常
87+
88+
如果多次要求重新输入密码,且显示
89+
```
90+
Failed to connect to the remote extension host server (Error: ExtensionInstallFailed(ExtensionInstallFailed("Error while installing extensions: getaddrinfo EAI_AGAIN marketplace.visualstudio.com\ngetaddrinfo EAI_AGAIN marketplace.visualstudio.com\n")
91+
```
92+
是 VS Code 远程 SSH 到 Linux 服务器时无法下载 VSCode 插件 的典型网络问题。DNS 解析失败或超时,即 Linux 服务器无法访问 marketplace.visualstudio.com
93+
94+
解决:
95+
1. 通过 Windows Powershell 或 Linux 命令行 ssh 连接远程
96+
```sh
97+
98+
```
99+
100+
2. 在 Linux 服务器上运行:
101+
```sh
102+
unitree@ubuntu:~$ ping marketplace.visualstudio.com
103+
```
104+
如失败,则是 Linux 服务器的外网访问问题
105+
106+
3. 运行:
107+
```sh
108+
unitree@ubuntu:~$ cat /etc/resolv.conf
109+
```
110+
显示 `nameservers. nameserver 127.0.0.53 search Huawei.Local`
111+
这意味着 Ubuntu 正在使用 systemd-resolved 的本地 DNS 缓存代理(127.0.0.53),但它无法解析外部域名。
112+
113+
4. 运行:
114+
```sh
115+
unitree@ubuntu:~$ sudo vim /etc/systemd/resolved.conf
116+
```
117+
118+
找到或添加如下几行(去掉 #):
119+
```
120+
[Resolve] DNS=8.8.8.8 1.1.1.1
121+
FallbackDNS=114.114.114.114
122+
DNSStubListener=yes
123+
```
124+
保存
125+
126+
5. 重启 DNS 服务
127+
```sh
128+
unitree@ubuntu:~$ sudo systemctl restart systemd-resolved
129+
```
130+
131+
6. 检查 DNS 是否生效
132+
```sh
133+
unitree@ubuntu:~$ systemd-resolve --status
134+
```
135+
136+
如显示
137+
```
138+
DNS Servers: 8.8.8.8 1.1.1.1
139+
Fallback DNS Servers: 114.114.114.114 8.8.8.8
140+
```
141+
则已生效
142+
143+
`q` 退出查看
144+
145+
7. 再次测试网络
146+
147+
```sh
148+
unitree@ubuntu:~$ ping 8.8.8.8
149+
unitree@ubuntu:~$ ping marketplace.visualstudio.com
150+
```
151+
如果能 ping 通, 则重启 VScode 远程 SSH 不会再出现问题

0 commit comments

Comments
 (0)