> ode-remote/faq/old-linux for additional information.
> <<< End of server log
> 845c52815b32: start
> exitCode==32==
> listeningOn====
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1007==
> platform==linux==
> unpackResult==success==
> didLocalDownload==0==
[17:09:38.627] >
> downloadTime==2259==
> installTime==1281==
> extInstallTime====
> serverStartTime==14559==
> 845c52815b32: end
[17:09:38.627] Received install output:
exitCode==32==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1007==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==2259==
installTime==1281==
extInstallTime====
serverStartTime==14559==
[17:09:38.628] Resolver error: Error: The VS Code Server failed to start
at g.ServerInstallError (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:460179)
at d (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:453522)
at t.handleInstallOutput (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:455792)
at t.tryInstall (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:581100)
at async c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:540958
at async t.withShowDetailsEvent (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:544264)
at async k (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:537923)
at async t.resolve (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:541635)
at async c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:807794
[17:09:38.634] ------
[17:09:39.920] "install" terminal command done
[17:09:39.921] Install terminal quit with output:
复制代码
服务器日志报错
Warning: Missing GLIBC >= 2.28! from /lib/x86_64-linux-gnu/libc-2.27.so Error: Missing required dependencies. Please refer to our FAQ Visual Studio Code Remote Development Frequently Asked Questions for additional information.
题目分析:
这个错误表明你在利用Visual Studio Code通过SSH连接到服务器时遇到了GLIBC版本不匹配的题目。GLIBC(GNU C Library)是Linux体系上的一个关键库,而这个错误提示表明你的体系的GLIBC版本低于所需的版本。
办理这个题目的步调如下:
Can I run VS Code Server on older Linux distributions?
Starting with VS Code release 1.86, the minimum requirements for the build toolchain of the remote server were raised. The prebuilt servers distributed by VS Code are compatible with Linux distributions based on glibc 2.28 or later, for example, Debian 10, RHEL 8, Ubuntu 20.04.
If your setup does not meet these requirements and you are unable to upgrade the Linux distribution, you can downgrade the VS Code client to version 1.85 to continue using Remote Development. You can downgrade the VS Code client on both desktop and web:
On desktop, you can download the VS Code release 1.85 from here. Depending on your platform, make sure to disable updates to stay on that version. A good recommendation is to have release 1.85 as a separate installation, set up with Portable Mode. That way, you won't affect your main desktop VS Code version.
On web, you can add the following query argument ?vscode-version=0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 to use VS Code release 1.85.
翻译:
我可以利用较旧的 Linux 发行版运行 VS Code Server 吗?
从 VS Code 1.86 版本开始,远程服务器的构建工具链的最低要求有所进步。VS Code 分布式预构建的服务器与基于 glibc 2.28 或更高版本的 Linux 发行版兼容,比方 Debian 10、RHEL 8、Ubuntu 20.04。
假如您的设置不符合这些要求,并且无法升级 Linux 发行版,您可以降级 VS Code 客户端到 1.85 版本,以继承利用 Remote Development。您可以在桌面和 Web 上降级 VS Code 客户端:
在桌面方面,您可以从这里下载 VS Code 1.85 版本。根据您的平台,请确保禁用更新以保持在该版本。一个好的建议是使 1.85 版本作为单独的安装,并设置便携模式。如许,您不会影响您的主要桌面 VS Code 版本。
在 Web 上,您可以添加以下查询参数 ?vscode-version=0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 以利用 VS Code 1.85 版本。