vscode日志
服务器日志报错
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版本低于所需的版本。
办理这个题目的步调如下:
- 更新GLIBC版本: 起首,尝试更新你的体系的GLIBC版本。这可能必要你升级你的Linux发行版或手动更新GLIBC。请注意,手动更新GLIBC可能会涉及到体系稳固性的风险,因此请确保你了解你所接纳的步调,并在更新之前备份紧张数据。
- 利用适用于你体系版本的Visual Studio Code: 假如你的体系版本无法升级GLIBC,尝试利用Visual Studio Code的旧版本,该版本与你的体系GLIBC版本兼容。你可以在Visual Studio Code的GitHub Release页面找到以前的版本。
- 查看FAQ页面: 错误消息中提到了FAQ页面,你可以访问Visual Studio Code Remote Development Frequently Asked Questions查看详细的常见题目和办理方案。这个页面可能包罗与GLIBC版本不匹配相关的详细信息和办理方案。
- 思量其他远程开辟工具: 假如GLIBC版本题目仍然无法办理,可以思量利用其他远程开辟工具,比方SSH自带的命令行工具或其他适用于你的情况的工具。
请注意,确保在接纳任何措施之前备份紧张数据,以防不测。
查看官方办理方案
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 版本。
结论
2024 发布的版本1.86连接有题目,必要将vs版本回退到1.85
验证
降版本回退到1.85 连接正常,并且关闭vscode的自动更新选项
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |