vscode 降低CLI版本

ykejflvf  于 22天前  发布在  Vscode
关注(0)|答案(4)|浏览(22)

Reposting the post from another user on a "closed" issue. The issue is not closed at all, we still cannot work after code got updated and that's just absurd. We cannot either revert back cause of the following issue.
I am trying to downgrade the CLI specifically on a remote machine, have tried downloading the CLI tool from the following address:
https://update.code.visualstudio.com/1.85.2/cli-linux-x64/stable
When I run code after unpacking it, it is still looking for the updated GLIBC versions:

[mdefende@c0202 Downloads]$ ./code
./code: /lib64/libc.so.6: version `GLIBC_2.29' not found (required by ./code)
./code: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./code)
./code: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./code)
./code: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./code)
./code: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by ./code)

I do notice whenever I change the version number, the downloaded file is always named vscode_cli_linux_x64_cli.tar.gz whereas distinct versions of the full VSCode have some distinct tag on their tarballs. For instance, Code 1.85.2 available at https://update.code.visualstudio.com/1.85.2/linux-x64/stable is named code-stable-x64-1705560028.tar.gz whereas 1.85.1 is named code-stable-x64-1702460840.tar.gz . Are all of the CLI links accessing the same 1.86.0 file? I can't check the version or the help of the CLI binary because of the GLIBC errors

EDIT: I tested on an updated Linux distribution and the CLI download links are pointing to the correct versions. However, CLI version 1.85.2 and below (to what I've tested) are still erroring out when they don't find the new GLIBC versions. I don't know what else to try at this point.

  • Originally posted by @mdefende in #203967 (comment)*
gorkyyrv

gorkyyrv1#

使用这个链接解决了问题。由于没有微软的官方指南,不得不尝试和错误找到正确的链接。

vaj7vani

vaj7vani2#

这对我有用。需要在Previous Releases文档中更新。那个cli-alpine-x64下载类型似乎没有出现在该页面上。

8gsdolmq

8gsdolmq3#

这对我有用。需要在Previous Releases文档中更新。那个cli-alpine-x64下载类型似乎没有出现在那个页面上。
远程机器上的代码bin现在开始运行正常,但是当我尝试建立连接时,机器一直在下载服务器,尝试安装它并无限循环。以前从未发生过这种情况,可能与降级有关。更新后仍然无法在使用vscode。

jbose2ul

jbose2ul4#

自制修复部分2。
我手动下载了服务器,IP地址为wget https://update.code.visualstudio.com/commit:8b3775030ed1a69b13e4f4c628c612102e30a681/server-linux-x64/stable,然后将文件夹内容解压到~/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681
成功让它像这样工作。仍然尴尬,我不得不做这种事情。

相关问题