首先,我进行了很多谷歌搜索,但没有找到与我的情况相关的内容。我有一个ELF可执行文件,我正在尝试在我的Ubuntu WSL中运行它。我已经更改了权限 (chmod +x file
),但当我运行它时,出现了这个错误。
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by myFile)
当我使用ld命令时,它会显示以下内容:
myFile(.eh_frame); no .eh_frame_hdr table will be created
当我尝试升级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.
然后我尝试从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 (<< 1.25.3-1.1ubuntu2~)
fakeroot (version 1.24-1) is present and installed.
dpkg: error processing archive libc6_2.34-0ubuntu3.2_amd64.deb (--install):
installing libc6:amd64 would break fakeroot, and
deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
libc6_2.34-0ubuntu3.2_amd64.deb
libc6_2.35
....(其中包括以前版本的对象:GLIBC_2.34
等)。 - Knud Larsen