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