python3: /lib/x86_64-linux-gnu/libm.so.6: 找不到版本“GLIBC_2.29”(python3 需要)bullseye

问题描述 投票:0回答:0

我正在尝试在 docker 环境中编译一个 debian 包。使用靶心版本。 我收到 python3: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by python3) 错误,即使安装了 glibc2.31。当我查看依赖项时,大多数都需要 glibc >=2.28。 我没有找到任何只需要 glibc 2.29 的包。

$ ldd --version ldd (Debian GLIBC 2.31-13+deb11u4) 2.31 版权所有 (C) 2020 Free Software Foundation, Inc. 这是免费软件;有关复制条件,请参阅来源。没有 保修单;甚至不是为了特定目的的适销性或适用性。 由 Roland McGrath 和 Ulrich Drepper 撰写。

$ ls -l /lib/x86_64-linux-gnu/libm.so.6 lrwxrwxrwx 1 root root 12 Aug 26 2022 /lib/x86_64-linux-gnu/libm.so.6 -> libm-2.31.so

$ ls -l /lib/x86_64-linux-gnu/libc.so.6 lrwxrwxrwx 1 root root 12 Aug 26 2022 /lib/x86_64-linux-gnu/libc.so.6 -> libc-2.31.so

python3 -V Python 3.9.2

如何解决问题?

我试图寻找任何只需要 glibc 2.29 的包。没找到。

python glibc debian-packaging
© www.soinside.com 2019 - 2024. All rights reserved.