首先,我用谷歌搜索了很多,但没有找到与我的情况相关的东西,我有一个 ELF 可执行文件,我试图在我的 Ubuntu WSL 中运行它,我已经更改了权限 ( chmod +x file),当我运行它时,这个出现错误
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by myFile)
Run Code Online (Sandbox Code Playgroud)
当我使用 ld 命令时,这会向我显示
myFile(.eh_frame); no .eh_frame_hdr table will be created
Run Code Online (Sandbox Code Playgroud)
当我尝试升级 GLIBC 时,它说它是最新的
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version (2.31-0ubuntu9.7).
libc6 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 215 not upgraded.
Run Code Online (Sandbox Code Playgroud)
然后我尝试从https://packages.ubuntu.com/impish/amd64/libc6/download手动安装 deb 文件,但这对我来说是这样的:
dpkg: regarding libc6_2.34-0ubuntu3.2_amd64.deb containing libc6:amd64:
libc6:amd64 breaks fakeroot …Run Code Online (Sandbox Code Playgroud)