vscode连接ubuntu18报Gilbc2.28错
在使用新版本的
vscode
l连接ubuntu18
的时候,会出现 GILB < 2.28 ,不满足条件的错误。这是因为微软官方现在已经完全停止vscode serve 对 ubuntu18.04的支持,使用remote ssh连接ubuntu18.04服务器会出现libc版本过低不支持的问题。
-
安装环境
sudo apt install gnupg ca-certificates sudo binutils
-
查看支持的版本
strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC_
-
编辑镜像源文件
sudo nano /etc/apt/sources.list
-
加入源地址
#此源已经404 # deb http://security.debian.org/debian-security buster/updates main # 阿里云镜像源(备选) 适用于 Buster 的归档安全源 deb https://mirrors.aliyun.com/debian-archive/debian-security/ buster/updates main
-
更新软件源
sudo apt update
会提示 由于没有公钥,无法验证下列签名:
NO_PUBKEY 112695A0E562B32A NO_PUBKEY 54404762BBB6E853
-
添加签名
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A 54404762BBB6E853
-
更新软件列表
sudo apt list --upgradable
-
更新
GILC
sudo apt install libc6-dev
-
查看是否成功
strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC