试图通过Visual代码的远程SSH连接到主机,我得到以下弹出错误:
Could not establish connection to 100.xxx.xx.xx The vscode server failed to start SSH在输出终端上,下面是错误消息:
[16:22:19.929] > Waiting for server log...
[16:22:19.981] > Waiting for server log...
[16:22:20.034] > Waiting for server log...
[16:22:20.088] >
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>
[16:22:20.102] >
[16:22:20.130] > Server did not start successfully. Full server log at /home/pi/.vscode-server/.
> 7f6ab5485bbc0083e155244e.log >>>
> /home/pi/.vscode-server/bin/7f6ab5485bbc0083e155244e/node: /usr/
> lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (requir
> ed by /home/pi/.vscode-server/bin/7f6ab5485bbc0083e155244e/node)
> /home/pi/.vscode-server/bin/7f6ab5485bbc0083e155244e/node: /usr/
> lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (requ
> ired by /home/pi/.vscode-server/bin/7f6ab5485bbc0083e155244e/nod
> e)
[16:22:20.136] >
> <<< End of server log
[16:22:20.142] >
> 2f61c0e4f600: start
> exitCode==32==
> listeningOn====
> osReleaseId==raspbian==
> arch==armv7l==
> tmpDir==/run/user/1000==
> platform==linux==
[16:22:20.148] >
> unpackResult==success==
> didLocalDownload==0==
> downloadTime==15126==
> installTime==4341==
> extInstallTime====
> serverStartTime==7826==
> 2f61c0e4f600: end
[16:22:20.148] Received install output:
exitCode==32==
listeningOn====
osReleaseId==raspbian==
arch==armv7l==
tmpDir==/run/user/1000==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==15126==
installTime==4341==
extInstallTime====
serverStartTime==7826==
[16:22:20.149] Resolver error: Error: The VS Code Server failed to start
at Function.ServerInstallError (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:39675)
at u (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:391298)
at Object.t.handleInstallOutput (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:39717)
at Object.t.tryInstall (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:48914)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:45110
at async Object.t.withShowDetailsEvent (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:45660)
at async Object.t.resolve (c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:45189)
at async c:\Users\sa\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:52942
[16:22:20.153] ------
[16:22:20.652] >
[16:22:21.437] "install" terminal command done
[16:22:21.438] Install terminal quit with output:我核实了
VS代码版本是版本: 1.60.2
对于如何调试和修复这个远程SSH问题,有什么建议吗?
发布于 2022-03-29 19:20:10
在从Windows机器访问Linux服务器时,我遇到了相同错误消息的问题。我通过添加一个允许传入流量到VSCode的windows防火墙规则来解决这个问题(我已经设置了一个允许传出流量的规则,顺便说一句)。
发布于 2021-10-15 05:51:04
@oakad感谢您建议并指点远程端的libstdc++升级。
sudo apt-get update
所以试过了
sudo存储库ppa:ubuntu-toolchain/test sudo apt-获取更新sudo apt-获取安装gcc-4.9 sudo apt-get libstdc++6
后面是add存储库:命令not进一步尝试。
sudo apt install software-properties-common
sudo apt update 它没有帮助,只是升级了RPi 3B到RPi 4现在远程-SSH的Visual代码是非常好的工作。(不确定最近是否有一些不再支持旧版本的Raspbian版本的更新)
发布于 2022-01-06 07:06:37
值得注意的是,我和OP有同样的问题,这是因为我运行的是杰西,其中的现在快5岁了。我更新了我的覆盆子Pi的内核从杰西到Buster (2021年)通过以下指南:https://djangocas.dev/blog/upgrade-existing-jessie-to-buster-without-re-image/
简而言之,将内核更新为更现代的内容。简短版本:
$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/raspi.list
$ sudo apt-get update
$ sudo apt-get -y dist-upgrade
$ sudo reboot一旦这是从杰西做到拉伸,做同样的从拉伸到破坏(在链接后指出)。
一旦一切都稳定下来,您就可以从远程框安装和运行vscode-server。
https://stackoverflow.com/questions/69458376
复制相似问题