标签: glibc

在 Ubuntu(Linux 的 Windows 子系统)上找不到“GLIBC_2.25”

我在Ubuntu 16.04适用于 Linux 的 Windows 子系统)上出现以下错误

/lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.25' not found
Run Code Online (Sandbox Code Playgroud)

我已经试过了:

apt-get update
apt-get install libc6
Run Code Online (Sandbox Code Playgroud)

看来,系统有最新的 libc6,因为它输出

libc6 is already the newest version (2.23-0ubuntu10)
Run Code Online (Sandbox Code Playgroud)

但是我想运行的程序失败了。

我如何解决它?

glibc

11
推荐指数
1
解决办法
2万
查看次数

libc.so.6:未找到版本“GLIBC_2.16”

在 python 中导入库 (cdms2) 时,我收到以下错误消息:

ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.16' not found (required by /usr/local/uvcdat/1.3.1/Externals/lib/libcurl.so.4)
Run Code Online (Sandbox Code Playgroud)

我的 libc6 版本目前是 2.15 (Ubuntu 12.04)。我的理解是最新版本不在稳定的存储库中:如何强制 apt 更新到 2.16 版?

upgrade glibc

10
推荐指数
1
解决办法
5万
查看次数

如何修复丢失/重命名的 libc.so.6?

我需要在不打字的情况下以某种方式成为 root 的原因sudo是因为

error while loading shared libraries: libc.so.6: 
    cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我曾经sudosudo mv /lib64/libc.so.6 /lib64/libc.so.6.bak

因为我遵循了一些说明,以便我可以将符号链接更新为libc-12.4.so而不是当前libc-12.2.so

LD_PRELOAD=./libc-2.14.so ln -s ./libc-2.14.so ./libc.so.6
Run Code Online (Sandbox Code Playgroud)

但这不起作用使用sudo. 现在我害怕注销或重新启动系统而死。因为我需要获得 root 权限才能解决这个问题。

我没有救援盘。更糟糕的是,我必须将硬盘安装到另一台机器上并修复它。

请帮忙。

$ sudo bash -c "LD_PRELOAD=./libc-2.14.so ln -s ./libc-2.14.so ./libc.so.6"
sudo: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

$ LD_PRELOAD=./libc-2.14.so sudo LD_PRELOAD=./libc-2.14.so ln -s ./libc-2.14.so ./libc.so.6 …
Run Code Online (Sandbox Code Playgroud)

command-line sudo glibc

9
推荐指数
1
解决办法
1万
查看次数

由于安全漏洞,如何在 ubuntu 20.04 上更新 glibc

我正在尝试更新 glibc 2.31-0ubuntu9.2。由于内部扫描发现此漏洞很容易受到攻击。

https://nvd.nist.gov/vuln/detail/CVE-2021-33574#range-6777140

当我使用 sudo apt-get update 然后 sudo apt install glibc 我一无所获。

有任何想法吗?

提前致谢。

security gdb glibc vulnerability 20.04

9
推荐指数
1
解决办法
1650
查看次数

由于“请将 gnulib freadahead.c 移植到您的平台!”,m4 1.4.10 到 1.4.18 的编译失败。在 Ubuntu 18.10 上

GNU m4 1.4.10 到 1.4.18 tarball 版本的构建(没有测试所有修补程序版本,但我认为错误在这个范围内是一致的)./configure && make -j1和 gitgit存储库http://git.savannah.gnu.org /r/m4.git with ./bootstrap && ./configure && make -j1(commit cvs-readonly-359-gd69fa528ie HEADof master) 由于

freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your …
Run Code Online (Sandbox Code Playgroud)

compiling gnu glibc

8
推荐指数
2
解决办法
2万
查看次数

未找到版本“GLIBC_2.28”

我正在尝试在 ARMv7(32 位)架构上安装 PyTorch,但 PyTorch 没有\xe2\x80\x99t 官方 ARMv7 版本,所以我尝试了这个非官方版本。

\n\n

它安装成功,但是当我导入 torch 时出现以下错误

\n\n
import torch\nTraceback (most recent call last):\n  File "<stdin>", line 1, in <module>\n  File "/usr/local/lib/python3.7/site-packages/torch/__init__.py", line 81, in <module>\n    from torch._C import *\nImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28\' not found (required by /usr/local/lib/python3.7/site-packages/torch/lib/libtorch_python.so)\n
Run Code Online (Sandbox Code Playgroud)\n\n

我尝试了以下方法

\n\n
sudo apt-get update\nsudo apt-get install libc6\n
Run Code Online (Sandbox Code Playgroud)\n\n

但看起来我有最新版本的 libc6

\n\n
Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nlibc6 is already the newest version (2.23-0ubuntu11).\nThe following packages were automatically installed and are …
Run Code Online (Sandbox Code Playgroud)

glib python3 glibc 16.04

8
推荐指数
1
解决办法
5万
查看次数

为什么我不能在 Ubuntu 12.04 上编译 GLIBC?

我正在尝试在 Ubuntu 12.04 上编译Linux From Scratch 内核 7.1版,在虚拟机内部运行。

我已经成功完成了本教程的一部分,但是当我到达步骤 5.7:构建 Glibc-2.14.1 时,我在 make 时遇到错误。

In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0
../misc/syslog.c: In function '__vsyslog_chk':
../misc/syslog.c:144:9: warning: variable 'prioff' set but not used [-Wunused-but-
    set-variable
../misc/syslog.c:123:1: sorry, unimplemented: inlining failed in call to 'syslog':        
    function body not available.
../misc/syslog.c:155:9: sorry, unimplemented: called from here
make[2]: *** [/mnt/lfs/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1'
make: ***[all] Error 2
Run Code Online (Sandbox Code Playgroud)

经过一番谷歌搜索,我看到了一个提交的错误报告:http : //sourceware.org/bugzilla/show_bug.cgi? …

gcc glibc

7
推荐指数
1
解决办法
4255
查看次数

7
推荐指数
1
解决办法
6万
查看次数

即使 libstdc++.so.6 足够新,也未找到版本“GLIBCXX_3.4.26”

我意识到有很多这样的问题,但与其他问题的不同之处在于我的 libstdc++.so.6 实际上似乎是最新的(有关它导出的字符串,请参见下文)。这是在尝试加载我自己编译的动态库时出现的错误。apt-get upgrade 之类的告诉我 libstdc++.so.6 已经是最新的(版本libstdc++6 is already the newest version (9.1.0-2ubuntu2~18.04))。

加载此库时出现完整错误(在 MATLAB R2019a 中):

'/home/dee/git_repos/Titta/TobiiMex/TobiiMex_matlab/64/TobiiMex_matlab.mexa64':
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by
/home/dee/git_repos/Titta/TobiiMex/TobiiMex_matlab/64/TobiiMex_matlab.mexa64)
Run Code Online (Sandbox Code Playgroud)

的输出strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC

GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.14
GLIBC_2.6
GLIBC_2.4
GLIBC_2.18
GLIBC_2.16
GLIBC_2.3.4
GLIBC_2.17
GLIBC_2.3.2
GLIBCXX_DEBUG_MESSAGE_LENGTH
Run Code Online (Sandbox Code Playgroud)

我可以尝试解决什么问题?

shared-library glibc

6
推荐指数
2
解决办法
2万
查看次数

Ubuntu 22.04:gnome 和 gimp 之眼均因未定义符号错误而失败

几天后,从命令行启动时,eog 和 gimp 都失败了。我从两者都收到相同的错误消息:

\n
gimp: symbol lookup error: /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined symbol: __libc_pthread_init, version GLIBC_PRIVATE\n\neog: symbol lookup error: /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined symbol: __libc_pthread_init, version GLIBC_PRIVATE\n
Run Code Online (Sandbox Code Playgroud)\n

这种情况发生在所有默认终端、x 终端和终止符中。Snap 表示所有软件包都是最新的。我已经无计可施了。我还应该看什么?

\n

谢谢!

\n

编辑:gimp 和 eog 不是 snap 应用程序。以下是快照列表的结果:

\n
Name                            Version                     Rev    Tracking         Publisher    Notes\nbare                            1.0                         5      latest/stable    canonical**  base\ncode                            7f329fe6                    123    latest/stable    vscode**     classic\ncore                            16-2.58.3                   14946  latest/stable    canonical**  core\ncore18                          20230320                    2721   latest/stable    canonical**  base\ncore20                          20230308                    1852   latest/stable    canonical**  base\ncore22                          20230325                    607    latest/stable    canonical**  base\nfirefox                         111.0.1-2                   2487   latest/stable/\xe2\x80\xa6  mozilla**    -\ngnome-3-28-1804                 3.28.0-19-g98f9e67.98f9e67 …
Run Code Online (Sandbox Code Playgroud)

gimp eog glibc snap 22.04

6
推荐指数
1
解决办法
2708
查看次数