【发布时间】:2023-01-17 11:32:22
【问题描述】:
首先,我用谷歌搜索了很多但没有发现与我的案例相关的东西,我有一个 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
【问题讨论】:
-
GLIBC (libc6)是您的操作系统(与内核一起)并且无法更改。 ....... 建议:安装 Ubuntu 22.04:有
libc6_2.35....(其中包括以前版本的对象:GLIBC_2.34等)
标签: linux ubuntu windows-subsystem-for-linux elf glibc